Allow re-enabling push notifications after unsubscribing
This commit is contained in:
parent
d403cdde75
commit
05a8ef1797
|
@ -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');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue