mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-02 18:06:16 +00:00
7457834dc5
Factor out the logic for whether the WelcomeDialog should be shown into its own method, and write it in a less confusing way. Do the same thing with the logic for setting the preference/storage/cookie for hiding the WelcomeDialog. This makes maybeShowWelcomeDialog() much simpler, and removes duplicated code in DesktopArticleTarget. There is one minor change in behavior: if the WelcomeDialog is suppressed using the URL parameter, that no longer causes the preference to be updated as if the dialog had been shown. Change-Id: I1d4f912c5f6bd7a2bbad2b209b97c3ec1f250a07 |
||
---|---|---|
.. | ||
ve-mw | ||
ve-mw-collab |