mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:19:52 +01:00
Allow re-enabling push notifications after unsubscribing
This commit is contained in:
parent
d403cdde75
commit
05a8ef1797
1 changed files with 4 additions and 5 deletions
|
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue