jenkins-bot has submitted this change and it was merged. Change subject: Prefix with wgCookiePrefix and gettingStarted ......................................................................
Prefix with wgCookiePrefix and gettingStarted Change-Id: I6511a0bac54d31f75538af2db789e0377cb39960 --- M resources/ext.gettingstarted.anonymousEditorAcquisition.js 1 file changed, 4 insertions(+), 4 deletions(-) Approvals: Phuedx: Looks good to me, approved jenkins-bot: Verified diff --git a/resources/ext.gettingstarted.anonymousEditorAcquisition.js b/resources/ext.gettingstarted.anonymousEditorAcquisition.js index d2b5878..81406b8 100644 --- a/resources/ext.gettingstarted.anonymousEditorAcquisition.js +++ b/resources/ext.gettingstarted.anonymousEditorAcquisition.js @@ -7,7 +7,7 @@ token = user.getToken(), bucket = user.getBucket(), LOG_EVENT_TIMEOUT = 500, // (ms) - CTA_FLAG_KEY = 'hasShownAnonymousEditorAcquisitionCTA', + ctaFlagKey = mw.config.get( 'wgCookiePrefix' ) + '-gettingStartedHasShownAnonymousEditorAcquisitionCTA', tourToSelectorMapping = { 'anonymouseditoracquisitionpreedit': [ '#ca-edit', '.mw-editsection a:not( .mw-editsection-visualeditor )' ], 'anonymouseditoracquisitionpreeditve': [ '#ca-ve-edit', '.mw-editsection-visualeditor ' ] @@ -155,10 +155,10 @@ // Wrapper for launching the experiment tour function launchTour( tourName ) { // Abort if flag is set - if ( $.jStorage.get( CTA_FLAG_KEY ) ) { + if ( $.jStorage.get( ctaFlagKey ) ) { return; } - $.jStorage.set( CTA_FLAG_KEY, true ); + $.jStorage.set( ctaFlagKey, true ); gt.launchTour( tourName ); } @@ -293,7 +293,7 @@ logLinkClick( '#pt-createaccount', 'create account' ); // Init if flag is not set - if ( $.jStorage.get( CTA_FLAG_KEY ) === null ) { + if ( $.jStorage.get( ctaFlagKey ) === null ) { if ( isPreEdit ) { initPreEditVariant(); } else if ( bucket === 'post-edit' ) { -- To view, visit https://gerrit.wikimedia.org/r/133199 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6511a0bac54d31f75538af2db789e0377cb39960 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GettingStarted Gerrit-Branch: master Gerrit-Owner: Mattflaschen <mflasc...@wikimedia.org> Gerrit-Reviewer: Phuedx <g...@samsmith.io> Gerrit-Reviewer: Robmoen <rm...@wikimedia.org> Gerrit-Reviewer: Swalling <swall...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits