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

View file

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