I worked around this by calling postMessage() from my WebWorker to get the log message into the browser window where it could be logged:
// inside render-worker.js function log(msg) { postMessage("log: " + msg); }and in the code that calls the worker, I added this to the onmessage callback:
// inside UI code running in the main browser window worker.onmessage = function(e) { if (e.data.indexOf("log:") == 0) { window.console.log(e.data); return; } // assume it's not a log message, JSON.parse() it, // or do other stuff with it here. }
Voila- logging from inside a WebWorker. Totally a hack, but it worked for me in a pinch.
I appreciate the effort of the blogger. I have one small question which is related to html5. If you could help me out then it would be really helpful. How is the page structure in html5 is different from html4?
ReplyDeletehtml5 training in chennai
Java Training Institutes Java Training Institutes
DeleteJava Spring Hibernate Training Institutes in Chennai J2EE Training Institutes in Chennai J2EE Training Institutes in Chennai Core Java Training Institutes in Chennai Core Java Training Institutes in Chennai
Hibernate Online Training Hibernate Online Training Hibernate Training in Chennai Hibernate Training in Chennai Java Online Training Java Online Training Hibernate Training Institutes in ChennaiHibernate Training Institutes in Chennai
The best thing about HTML5 is that it allows the developers to embed the video files, audio files, and high quality graphics without any third party applications.
ReplyDeletehtml5 training institutes in chennai | Fita Chennai reviews
Interesting Article
ReplyDeleteJavascript Training in Chennai | HTML5 Online Training
JavaScript Training Courses | Javascript Online Training | Angular 2 Training in Chennai
Nice blog! I love it very much. All the info given by you are really superb. for my research. keep on posting your views.
ReplyDeleteHadoop Training in Chennai
Big Data Training in Chennai
hadoop training in Porur
hadoop training in TNagar
German Language Course in Chennai
German Courses in Chennai
I have read your article throughly and it was awesome content with great example.
ReplyDeleteCloud Computing Courses in Chennai
Hadoop Training in Chennai
Digital Marketing Course in Chennai
Selenium Training in Chennai
JAVA Training in Chennai
German Classes in chennai
DOT NET Training in Chennai
.Net training in chennai
This blog is very nice! You have been providing the valuable content and I was satisfied with your great post. I am always following your blog, please keep posting...
ReplyDeleteLinux Training in Chennai
Linux Course in Chennai
Excel Training in Chennai
Oracle Training in Chennai
Unix Training in Chennai
Tableau Training in Chennai
Embedded System Course Chennai
Oracle DBA Training in Chennai
Primavera Training in Chennai
Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision.
ReplyDeleteGood discussion.
German Classes in Chennai
German Language Course in Chennai
german classes in bangalore
german language course in bangalore
german classes in coimbatore
german language course in coimbatore
german classes in madurai
Thanks for sharing such a nice info.I hope you will share more information like this. please keep on sharing!
ReplyDeleteRPA Training in Chennai
RPA Training in Bangalore
Robotics Classes in Coimbatore
Robotics Courses in Coimbatore
Robotics Courses in Bangalore
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeleteGiá vé máy bay Hàn Việt Vietjet
vé máy bay gia lai đi sài gòn
vé máy bay huế đi hà nội
máy bay đà nẵng nha trang
ve may bay gia re di Hue
taxi sân bay nội bài