Removes usage of print as log
This commit is contained in:
parent
72e4c069b2
commit
bc19b5581e
@ -22,8 +22,6 @@
|
|||||||
var log = (function() {
|
var log = (function() {
|
||||||
if ('console' in globalScope && 'log' in globalScope['console']) {
|
if ('console' in globalScope && 'log' in globalScope['console']) {
|
||||||
return globalScope['console']['log'].bind(globalScope['console']);
|
return globalScope['console']['log'].bind(globalScope['console']);
|
||||||
} else if ('print' in globalScope) {
|
|
||||||
return globalScope['print'].bind(globalScope);
|
|
||||||
} else {
|
} else {
|
||||||
return function nop() {
|
return function nop() {
|
||||||
};
|
};
|
||||||
|
@ -35,6 +35,7 @@ function MessageHandler(name, comObj) {
|
|||||||
}];
|
}];
|
||||||
} else {
|
} else {
|
||||||
ah['console_error'] = [function ahConsoleError(data) {
|
ah['console_error'] = [function ahConsoleError(data) {
|
||||||
|
log.apply(null, data);
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
ah['_warn'] = [function ah_Warn(data) {
|
ah['_warn'] = [function ah_Warn(data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user