mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-11-23 22:03:41 +00:00
Merge "Use mw.config instead of window.mw.config in JavaScript"
This commit is contained in:
commit
7ad7213628
|
@ -20,7 +20,7 @@
|
||||||
// Store the result in a cookie (ah, the sweet, sweet irony) to
|
// Store the result in a cookie (ah, the sweet, sweet irony) to
|
||||||
// avoid hitting the geolocation service unnecessarily
|
// avoid hitting the geolocation service unnecessarily
|
||||||
$.cookie( 'euCookieWarningCountryCode', countryCode, {
|
$.cookie( 'euCookieWarningCountryCode', countryCode, {
|
||||||
domain: window.mw.config.get( 'wgCookieDomain' ),
|
domain: mw.config.get( 'wgCookieDomain' ),
|
||||||
path: '/',
|
path: '/',
|
||||||
expires: 30
|
expires: 30
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue