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,