diff --git a/resources/skins.minerva.scripts/mobileRedirect.js b/resources/skins.minerva.scripts/mobileRedirect.js index 98ab796c5..76920e2c0 100644 --- a/resources/skins.minerva.scripts/mobileRedirect.js +++ b/resources/skins.minerva.scripts/mobileRedirect.js @@ -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'; } } diff --git a/skin.json b/skin.json index 967dedb68..35846d796 100644 --- a/skin.json +++ b/skin.json @@ -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",