From 5099e92fbcc5d15f7f4d9fd3b9a2258d855f7089 Mon Sep 17 00:00:00 2001 From: lucienbertin Date: Thu, 11 Feb 2016 13:49:50 +0100 Subject: [PATCH] only call console.log when window.console exists issue #14006 - `window.console` only exists in IE 8 & 9 when the devtools are open --- src/angular.bind.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/angular.bind.js b/src/angular.bind.js index 33bc710d4342..1758b5d176e7 100644 --- a/src/angular.bind.js +++ b/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; }