Skip to content

Commit 7c60e19

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 angular#14006 Closes angular#14007 Closes angular#14047
1 parent 632fa30 commit 7c60e19

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)