From: Jeff Wagner Date: Tue, 24 Jan 2012 22:19:41 +0000 (-0800) Subject: define console for IE9; updated to fix lint errors and comment X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=08f8aed5215d4ba861d4675f91aabb9bffa5997f;p=pdf.js.git define console for IE9; updated to fix lint errors and comment --- diff --git a/web/compatibility.js b/web/compatibility.js index 7addbe3..b221535 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -225,9 +225,9 @@ }); })(); -//IE9 console +// Check console compatability (function checkConsoleCompatibility() { - if (typeof console == "undefined") { + if (typeof console == 'undefined') { console = {log: function() {}}; } })();