Because IE8 have not console object in normal mode, so the code will trigger error or you have to press F12 open developer tools.
At last, I have to add polyfill code before the obfuscator code:
window.console = window.console || (function(){ var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile = c.clear = c.exception = c.trace = c.assert = function(){}; return c; })();
Please check whether console object exists before disable console output.
Thank you !
Because IE8 have not
consoleobject in normal mode, so the code will trigger error or you have to pressF12open developer tools.At last, I have to add polyfill code before the obfuscator code:
window.console = window.console || (function(){ var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile = c.clear = c.exception = c.trace = c.assert = function(){}; return c; })();Please check whether
consoleobject exists before disable console output.Thank you !