X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9e0a0c89939a75eccb7b6ae925707d404b287b78..e196067aabac55fa0064558e0b8554f7be3419bb:/project/static/js/app.js 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/ : /.*/;