From: Jeff Wagner Date: Tue, 24 Jan 2012 20:19:52 +0000 (-0800) Subject: define console for IE9 when debugging tools is not opened X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=19622406da911244d88ca15a073c185d0d83612d;p=pdf.js.git define console for IE9 when debugging tools is not opened --- diff --git a/web/compatibility.js b/web/compatibility.js index 26405ad..7addbe3 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -224,3 +224,10 @@ } }); })(); + +//IE9 console +(function checkConsoleCompatibility() { + if (typeof console == "undefined") { + console = {log: function() {}}; + } +})();