From bdee49550728d2411f811ce3444d484d85bf480f Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Fri, 1 Apr 2011 18:05:15 +0000 Subject: [PATCH] Fixed issue where reference error can be thrown - response to comments on r84985 --- resources/mediawiki/mediawiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.20.1