-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the obfuscator code can not run in IE8 #13
Comments
Thank you, i will fix it today |
How i can reproduce this error? js code: console.log('it works!!!'); In all modes on ie8 when i close Development Tools, refresh page, then open Development Tools, i have no error and correct message in console - 'it works!!!' With code: window.console.log = function () {};
console.log('it works!!!'); i have no errors and no messages in all modes |
Open IE8 and load test.html:
I am sorry, this is Chinese. On the bottom left corner, there's a warning tips. The alert is But If you open the developer tools and reload, the page can run normally. My IE8 version is 8.0.7601.17514 |
Still cannot reproduce, same IE version. But i made fix in separate branch, can you test it (for example temporary replace dist/index.js)? If it will work fine i publish new version to npm later today. |
I have tested it. |
|
nice job! Thank you! |
Because IE8 have not
console
object in normal mode, so the code will trigger error or you have to pressF12
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 !
The text was updated successfully, but these errors were encountered: