Fix resubscribing when notifications are re-granted
(case: from denied to granted)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user