Use mw.config instead of window.mw.config in JavaScript

Change-Id: I4ecc5d842cccc3905ee4794106bc63de707c9fbb
This commit is contained in:
Fomafix 2018-08-27 21:09:25 +02:00
parent 9e236f52e8
commit 1982eb268b

View file

@ -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
} );