Merge "DesktopArticleTarget.init: more explicit no-welcome-on-protected-pages"

This commit is contained in:
jenkins-bot 2017-07-17 22:48:21 +00:00 committed by Gerrit Code Review
commit 1a2de9c8ad

View file

@ -1055,6 +1055,11 @@
welcomeDialogLocalStorageValue === null &&
$.cookie( 've-beta-welcome-dialog' ) === null
)
) &&
(
// Not on protected pages
mw.config.get( 'wgIsProbablyEditable' ) ||
mw.config.get( 'wgRelevantPageIsProbablyEditable' )
)
) {
mw.loader.using( 'ext.visualEditor.welcome' ).done( function () {