Skip to content

Commit 1c2a357

Browse files
committed
Show deprecation notice modal on every page load instead of just the first visit
1 parent 6e07b57 commit 1c2a357

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

content/wardrive.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6910,31 +6910,24 @@ export async function onLoad() {
69106910
setupInfoModal('powerInfoLink', 'powerModal', 'Radio Power');
69116911
setupInfoModal('carpeaterInfoLink', 'carpeaterModal', 'Carpeater');
69126912

6913-
// Show deprecation notice modal on first page load
6913+
// Show deprecation notice modal on every page load
69146914
const noticeModal = document.getElementById('noticeModal');
69156915
const noticeModalOk = document.getElementById('noticeModalOk');
6916-
const NOTICE_STORAGE_KEY = 'meshmapper_notice_seen';
69176916

69186917
if (noticeModal && noticeModalOk) {
6919-
// Check if user has already seen the notice
6920-
const noticeSeen = localStorage.getItem(NOTICE_STORAGE_KEY);
6921-
if (!noticeSeen) {
6922-
debugLog('[UI] Showing deprecation notice modal (first visit)');
6923-
noticeModal.classList.remove('hidden');
6924-
}
6918+
debugLog('[UI] Showing deprecation notice modal');
6919+
noticeModal.classList.remove('hidden');
69256920

69266921
// Handle OK button click
69276922
noticeModalOk.addEventListener('click', () => {
69286923
debugLog('[UI] Notice modal OK clicked');
6929-
localStorage.setItem(NOTICE_STORAGE_KEY, 'true');
69306924
noticeModal.classList.add('hidden');
69316925
});
69326926

69336927
// Close modal when clicking backdrop
69346928
noticeModal.addEventListener('click', (e) => {
69356929
if (e.target === noticeModal) {
69366930
debugLog('[UI] Notice modal closed via backdrop click');
6937-
localStorage.setItem(NOTICE_STORAGE_KEY, 'true');
69386931
noticeModal.classList.add('hidden');
69396932
}
69406933
});

0 commit comments

Comments
 (0)