diff options
Diffstat (limited to 'app/assets')
-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); |