Hide push notification prompt in inbox after accepting

This commit is contained in:
Karina Kwiatek 2023-01-02 13:45:24 +01:00 committed by Andreas Nedbal
parent 05a8ef1797
commit 35a3b6b87a
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ export function enableHandler (event: Event): void {
.forEach(button => button.classList.remove('d-none')); .forEach(button => button.classList.remove('d-none'));
sender.classList.add('d-none'); sender.classList.add('d-none');
document.querySelector<HTMLDivElement>('.push-settings')?.classList.add('d-none');
localStorage.setItem('dismiss-push-settings-prompt', 'true');
document.getElementById('subscription-count').textContent = data.message; document.getElementById('subscription-count').textContent = data.message;
} else { } else {