mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +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 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
preinit | ||
tests | ||
themes | ||
ui |