Fix resubscribing when notifications are re-granted
(case: from denied to granted)
This commit is contained in:
parent
365a0b2832
commit
e8216ae9e7
4 changed files with 13 additions and 15 deletions
|
@ -44,9 +44,6 @@ class Notifier {
|
|||
}
|
||||
|
||||
async webPushSubscription(hasWebPushTopics) {
|
||||
if (!this.pushPossible()) {
|
||||
throw new Error("Unsupported or denied");
|
||||
}
|
||||
const pushManager = await this.pushManager();
|
||||
const existingSubscription = await pushManager.getSubscription();
|
||||
if (existingSubscription) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue