-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bare reference to window.console
in IE
#1209
Bare reference to window.console
in IE
#1209
Comments
@mightyiam yup but this is |
@maksimr oh, right. In most cases, then, the console would have been open. But, using Microsoft Visual Web Developer 2010 Express, like I do, apparently, while debugging, the |
@mightyiam @maksimr What do you think would be acceptable alternative behavior? Should the log message be swallowed if console isn't present? Should it be replaced with an alert instead? |
@freethejazz |
@freethejazz, I agree with @maksimr. Use |
Shielding a reference to `window.console.log`. Fixes the ability to use this page in IE without the inspector open. Fixes karma-runner#1209.
Shield a reference to `window.console.log` with a simple if statement. Fix the ability to use this page in IE without the inspector open. This was particularly an issue for developers running karma from within a Microsoft-based IDE. The log message will just be swallowed on environments that don't support `window.console`. Closes karma-runner#1209
Thank you, @freethejazz and @maksimr. |
Perhaps I'm missing something.
This line has
window.console.log
reference, which, in IE8—and perhaps in other IEs—isn't available.So, there's an exception. I'm not even sure that this causes issues but perhaps it does?
The text was updated successfully, but these errors were encountered: