Skip to content

Commit 0b5ff8f

Browse files
committed
fix: Safeguard IE against console.log
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 #1209
1 parent e21ac6a commit 0b5ff8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/debug.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
if (info.dump && window.console) window.console.log(info.dump);
2424
},
2525
complete: function() {
26-
window.console.log('Skipped ' + this.skipped + ' tests');
26+
if (window.console) window.console.log('Skipped ' + this.skipped + ' tests');
2727
},
2828
store: function() {},
2929
skipped: 0,

0 commit comments

Comments
 (0)