mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-11-23 13:56:53 +00:00
Use mw.config instead of window.mw.config in JavaScript
Change-Id: I4ecc5d842cccc3905ee4794106bc63de707c9fbb
This commit is contained in:
parent
9e236f52e8
commit
1982eb268b
|
@ -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
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue