]> git.parisson.com Git - pdf.js.git/commitdiff
define console for IE9 when debugging tools is not opened
authorJeff Wagner <jwagner@gmail.com>
Tue, 24 Jan 2012 20:19:52 +0000 (12:19 -0800)
committerJeff Wagner <jwagner@gmail.com>
Tue, 24 Jan 2012 20:19:52 +0000 (12:19 -0800)
web/compatibility.js

index 26405ad8f5fbe1867766d021d54127efd2ab6adc..7addbe3e2209117058e6a1323469c758e880ed24 100644 (file)
     }
   });
 })();
+
+//IE9 console
+(function checkConsoleCompatibility() {
+  if (typeof console == "undefined") {
+    console = {log: function() {}};
+  }
+})();