diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-22 21:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-22 21:10:13 +0300 |
commit | 0a5e00b6914944295b31ce10ffd5429cbe9fae89 (patch) | |
tree | 580508961eaa268b13df3eafe6f373b5b500d8c5 /app/assets/javascripts/whats_new | |
parent | 5f5f492fe278f3322e9533b617522321e2ccafcc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/whats_new')
-rw-r--r-- | app/assets/javascripts/whats_new/utils/notification.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/assets/javascripts/whats_new/utils/notification.js b/app/assets/javascripts/whats_new/utils/notification.js index 3d4326c4b3a..66ee3b1a971 100644 --- a/app/assets/javascripts/whats_new/utils/notification.js +++ b/app/assets/javascripts/whats_new/utils/notification.js @@ -7,12 +7,7 @@ export const setNotification = (appEl) => { const notificationEl = document.querySelector('.header-help'); let notificationCountEl = notificationEl.querySelector('.js-whats-new-notification-count'); - const legacyStorageKey = 'display-whats-new-notification-13.10'; - const localStoragePairs = [ - [legacyStorageKey, false], - [STORAGE_KEY, versionDigest], - ]; - if (localStoragePairs.some((pair) => localStorage.getItem(pair[0]) === pair[1].toString())) { + if (localStorage.getItem(STORAGE_KEY) === versionDigest) { notificationEl.classList.remove('with-notifications'); if (notificationCountEl) { notificationCountEl.parentElement.removeChild(notificationCountEl); |