|
|
@ -13,7 +13,8 @@ function MessageHandler(name, comObj) { |
|
|
|
ah['console_log'] = [function ahConsoleLog(data) { |
|
|
|
ah['console_log'] = [function ahConsoleLog(data) { |
|
|
|
log.apply(null, data); |
|
|
|
log.apply(null, data); |
|
|
|
}]; |
|
|
|
}]; |
|
|
|
// If there's no console available, console_error in the action handler will do nothing.
|
|
|
|
// If there's no console available, console_error in the
|
|
|
|
|
|
|
|
// action handler will do nothing.
|
|
|
|
if ('console' in globalScope) { |
|
|
|
if ('console' in globalScope) { |
|
|
|
ah['console_error'] = [function ahConsoleError(data) { |
|
|
|
ah['console_error'] = [function ahConsoleError(data) { |
|
|
|
globalScope['console'].error.apply(null, data); |
|
|
|
globalScope['console'].error.apply(null, data); |
|
|
|