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

Commit

Permalink
fix(*): only call console.log when window.console exists
Browse files Browse the repository at this point in the history
`window.console` only exists in IE 8 & 9 when the devtools are open

Fixes #14006
Closes #14007
Closes #14047
  • Loading branch information
lucienbertin authored and Narretz committed Feb 16, 2016
1 parent 6a4403a commit beb00e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/angular.bind.js
@@ -1,6 +1,8 @@
if (window.angular.bootstrap) {
//AngularJS is already loaded, so we can return here...
console.log('WARNING: Tried to load angular more than once.');
if (window.console) {
console.log('WARNING: Tried to load angular more than once.');
}
return;
}

Expand Down

0 comments on commit beb00e4

Please sign in to comment.