diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-22 20:47:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-22 20:47:30 +0000 |
commit | 0ca9e9b7230cb262a04b524aee8ffe99dbe63060 (patch) | |
tree | b26b9c2667a025a7e72f690e6789292028ece9de /app/assets/javascripts | |
parent | fe69f9a3841ee9b9ef2b35cb72b3e973c0301fcb (diff) | |
download | gitlab-ce-0ca9e9b7230cb262a04b524aee8ffe99dbe63060.tar.gz |
Add latest changes from gitlab-org/gitlab@13-11-stable-ee
Diffstat (limited to 'app/assets/javascripts')
-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); |