Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit beb00e4

Browse files
lucienbertinNarretz
authored andcommitted
fix(*): only call console.log when window.console exists
`window.console` only exists in IE 8 & 9 when the devtools are open Fixes #14006 Closes #14007 Closes #14047
1 parent 6a4403a commit beb00e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/angular.bind.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
if (window.angular.bootstrap) {
22
//AngularJS is already loaded, so we can return here...
3-
console.log('WARNING: Tried to load angular more than once.');
3+
if (window.console) {
4+
console.log('WARNING: Tried to load angular more than once.');
5+
}
46
return;
57
}
68

0 commit comments

Comments
 (0)