From 1982eb268bf17f2070a153857dc99f0351bd5877 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 27 Aug 2018 21:09:25 +0200 Subject: [PATCH] Use mw.config instead of window.mw.config in JavaScript Change-Id: I4ecc5d842cccc3905ee4794106bc63de707c9fbb --- resources/ext.CookieWarning.geolocation/cookiePolicy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/ext.CookieWarning.geolocation/cookiePolicy.js b/resources/ext.CookieWarning.geolocation/cookiePolicy.js index 743e3fb..dd1d704 100644 --- a/resources/ext.CookieWarning.geolocation/cookiePolicy.js +++ b/resources/ext.CookieWarning.geolocation/cookiePolicy.js @@ -20,7 +20,7 @@ // Store the result in a cookie (ah, the sweet, sweet irony) to // avoid hitting the geolocation service unnecessarily $.cookie( 'euCookieWarningCountryCode', countryCode, { - domain: window.mw.config.get( 'wgCookieDomain' ), + domain: mw.config.get( 'wgCookieDomain' ), path: '/', expires: 30 } );