console.log is not always available
This commit is contained in:
parent
1a4cdb7bdc
commit
d32c4e4863
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, module, classname) {
|
||||||
var msg = e.data;
|
var msg = e.data;
|
||||||
switch(msg.type) {
|
switch(msg.type) {
|
||||||
case "log":
|
case "log":
|
||||||
console.log(msg.data);
|
window.console && console.log && console.log(msg.data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "event":
|
case "event":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue