mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
JS: fix output to console in obfuscated mode
This commit is contained in:
parent
810012872c
commit
89661e52fb
|
@ -34,7 +34,9 @@ let $rt_createOutputFunction = outputFunction => {
|
|||
|
||||
let $rt_putStdout = typeof teavm_globals.$rt_putStdoutCustom === "function"
|
||||
? teavm_globals.$rt_putStdoutCustom
|
||||
: typeof console === "object" ? $rt_createOutputFunction(msg => console.info(msg)) : () => {};
|
||||
: typeof teavm_globals.console === "object"
|
||||
? $rt_createOutputFunction(msg => teavm_globals.console.info(msg)) : () => {};
|
||||
let $rt_putStderr = typeof teavm_globals.$rt_putStderrCustom === "function"
|
||||
? teavm_globals.$rt_putStderrCustom
|
||||
: typeof console === "object" ? $rt_createOutputFunction(msg => console.error(msg)) : () => {};
|
||||
: typeof teavm_globals.console === "object"
|
||||
? $rt_createOutputFunction(msg => teavm_globals.console.error(msg)) : () => {};
|
||||
|
|
Loading…
Reference in New Issue
Block a user