Skip to content

Commit d826cb3

Browse files
Added a check on window.console.error
1 parent 7843395 commit d826cb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/web/mage/apply/main.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ define([
3333
$(el)[component](config);
3434
}
3535
}, function (error) {
36-
console.error(error);
36+
if ('console' in window && typeof window.console.error === 'function') {
37+
console.error(error);
38+
}
3739

3840
return true;
3941
});

0 commit comments

Comments
 (0)