Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 20a08b5

Browse files
committed
IE8 console check fix
1 parent e10036a commit 20a08b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/loader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ function logloads(loads) {
105105

106106
(function() {
107107
var Promise = __global.Promise || require('when/es6-shim/Promise');
108-
console.assert = console.assert || function() {};
108+
if (__global.console)
109+
console.assert = console.assert || function() {};
109110

110111
// IE8 support
111112
var indexOf = Array.prototype.indexOf || function(item) {

0 commit comments

Comments
 (0)