Allow re-enabling push notifications after unsubscribing

This commit is contained in:
Karina Kwiatek 2023-01-02 13:35:08 +01:00 committed by Andreas Nedbal
parent d403cdde75
commit 05a8ef1797
1 changed files with 4 additions and 5 deletions

View File

@ -23,14 +23,13 @@ export default (): void => {
checkSubscription(subscription); checkSubscription(subscription);
subscriptionChecked = true; subscriptionChecked = true;
} }
return;
} }
if (!registration) { enableBtn?.classList.remove('d-none');
enableBtn?.classList.remove('d-none');
if (localStorage.getItem('dismiss-push-settings-prompt') == null) { if (localStorage.getItem('dismiss-push-settings-prompt') == null) {
document.querySelector('.push-settings')?.classList.remove('d-none'); document.querySelector('.push-settings')?.classList.remove('d-none');
}
} }
}); });
} }