mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-27 15:40:15 +00:00
jquery.cookie is deprecated
Bug: T271995 Change-Id: I5750707cdd630de4c79784125ed7e6dc17079898
This commit is contained in:
parent
9a529c3652
commit
b0b30f3f87
|
@ -13,14 +13,14 @@ module.exports = function ( amcOutreach, currentPage ) {
|
|||
*/
|
||||
function cookiesEnabled() {
|
||||
// If session cookie already set, return true
|
||||
if ( $.cookie( 'mf_testcookie' ) === 'test_value' ) {
|
||||
if ( mw.cookie.get( 'mf_testcookie' ) === 'test_value' ) {
|
||||
return true;
|
||||
// Otherwise try to set mf_testcookie and return true if it was set
|
||||
} else {
|
||||
$.cookie( 'mf_testcookie', 'test_value', {
|
||||
mw.cookie.set( 'mf_testcookie', 'test_value', {
|
||||
path: '/'
|
||||
} );
|
||||
return $.cookie( 'mf_testcookie' ) === 'test_value';
|
||||
return mw.cookie.get( 'mf_testcookie' ) === 'test_value';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -484,7 +484,7 @@
|
|||
"mediawiki.ui.anchor",
|
||||
"skins.minerva.mainMenu.icons",
|
||||
"skins.minerva.mainMenu.styles",
|
||||
"jquery.cookie",
|
||||
"mediawiki.cookie",
|
||||
"skins.minerva.icons.images.scripts.misc",
|
||||
"skins.minerva.icons.page.issues.uncolored",
|
||||
"skins.minerva.icons.page.issues.default.color",
|
||||
|
|
Loading…
Reference in a new issue