From 0b5ff8f6c201e64ac114f16340dedb0a0c21b9c6 Mon Sep 17 00:00:00 2001 From: Jonathan Freeman Date: Wed, 18 Feb 2015 09:30:54 -0600 Subject: [PATCH] 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 --- static/debug.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/debug.html b/static/debug.html index df6828941..89389c142 100644 --- a/static/debug.html +++ b/static/debug.html @@ -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,