do not override console if worker is mistakenly loaded into window
This commit is contained in:
parent
be35d27c95
commit
e5ca6769cd
1 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
"no use strict";
|
"no use strict";
|
||||||
|
|
||||||
|
if (typeof window != "undefined" && window.document)
|
||||||
|
throw "atempt to load ace worker into main window instead of webWorker";
|
||||||
|
|
||||||
var console = {
|
var console = {
|
||||||
log: function() {
|
log: function() {
|
||||||
var msgs = Array.prototype.slice.call(arguments, 0);
|
var msgs = Array.prototype.slice.call(arguments, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue