JGonera has uploaded a new change for review.
https://gerrit.wikimedia.org/r/85124
Change subject: Cleanup after cookie name change
......................................................................
Cleanup after cookie name change
mf_mobileFormat changed to mf_useformat in
1fb258a0df8e9bb7cbbee57c3ecb7f0ea81914f0
Change-Id: I6da48c68ef536e8105970dc4db10101ece8c9156
---
M javascripts/modules/mf-stop-mobile-redirect.js
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/24/85124/1
diff --git a/javascripts/modules/mf-stop-mobile-redirect.js
b/javascripts/modules/mf-stop-mobile-redirect.js
index 9d7b03a..5708b71 100644
--- a/javascripts/modules/mf-stop-mobile-redirect.js
+++ b/javascripts/modules/mf-stop-mobile-redirect.js
@@ -1,7 +1,7 @@
/**
* Handle cookies for switching from mobile -> desktop mode
*
- * Sets stopMobileRedirect cookie and, if present, unsets the mf_mobileFormat
+ * Sets stopMobileRedirect cookie and, if present, unsets the mf_useformat
* cookie (which is used on sites that do not have a separate mobile domain
* to keep users on the mobile version of the site).
*
@@ -18,11 +18,11 @@
writeCookie = M.settings.writeCookie;
function desktopViewClick() {
- // get mf_mobileFormat cookie info
+ // get mf_useformat cookie info
var useFormatCookie = mw.config.get( 'wgUseFormatCookie' ),
redirectCookie = mw.config.get(
'wgStopMobileRedirectCookie' );
- // expire the mf_mobileFormat cookie
+ // expire the mf_useformat cookie
writeCookie( useFormatCookie.name, '', useFormatCookie.duration,
useFormatCookie.path, useFormatCookie.domain );
--
To view, visit https://gerrit.wikimedia.org/r/85124
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6da48c68ef536e8105970dc4db10101ece8c9156
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: JGonera <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits