From: Trevor Parscal Date: Fri, 1 Apr 2011 18:05:15 +0000 (+0000) Subject: Fixed issue where reference error can be thrown - response to comments on r84985 X-Git-Tag: 1.31.0-rc.0~31093 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=bdee49550728d2411f811ce3444d484d85bf480f;p=lhc%2Fweb%2Fwiklou.git Fixed issue where reference error can be thrown - response to comments on r84985 --- diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 21e854f19e..eded36a81d 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -720,7 +720,7 @@ window.mediaWiki = new ( function( $ ) { } catch ( e ) { // This needs to NOT use mw.log because these errors are common in production mode // and not in debug mode, such as when a symbol that should be global isn't exported - if ( console && typeof console.log === 'function' ) { + if ( window.console && typeof window.console.log === 'function' ) { console.log( _fn + 'Exception thrown by ' + module + ': ' + e.message ); console.log( e ); }