Skip to content

Commit

Permalink
Safeguard IE against console.log
Browse files Browse the repository at this point in the history
Shielding a reference to `window.console.log`. Fixes the ability to use this page in IE without the inspector open. Fixes karma-runner#1209.
  • Loading branch information
freethejazz committed Feb 18, 2015
1 parent e21ac6a commit 8629e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if (info.dump && window.console) window.console.log(info.dump);
},
complete: function() {
window.console.log('Skipped ' + this.skipped + ' tests');
if (window.console) window.console.log('Skipped ' + this.skipped + ' tests');
},
store: function() {},
skipped: 0,
Expand Down

0 comments on commit 8629e6f

Please sign in to comment.