From 3913c541b2e25e10d9c80feef9d32b80d2bad82b Mon Sep 17 00:00:00 2001 From: zuber Date: Thu, 1 Oct 2009 15:40:52 +0200 Subject: [PATCH] =?utf8?q?Definiowanie=20console,=20je=C5=BCeli=20nie=20zo?= =?utf8?q?sta=C5=82o=20wcze=C5=9Bniej=20zdefiniowane=20(nie=20chcemy,=20?= =?utf8?q?=C5=BCeby=20u=C5=BCytkownikom=20bez=20Fiebuga/Safari=20nie=20dzi?= =?utf8?q?a=C5=82a=C5=82y=20strony).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/project/static/js/app.js b/project/static/js/app.js index e8875c93..2210654b 100644 --- a/project/static/js/app.js +++ b/project/static/js/app.js @@ -3,6 +3,14 @@ var editor; var panel_hooks; +// prevent a console.log from blowing things up if we are on a browser that +// does not support it +if (typeof console === 'undefined') { + window.console = {} ; + console.log = console.info = console.warn = console.error = function(){}; +} + + (function(){ // Classes var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; -- 2.20.1