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;
|
||||
switch(msg.type) {
|
||||
case "log":
|
||||
console.log(msg.data);
|
||||
window.console && console.log && console.log(msg.data);
|
||||
break;
|
||||
|
||||
case "event":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue