service worker: don't trigger "push notifications have been updated"

closes #121

Changelog: Fixed
This commit is contained in:
Johann150 2022-11-12 22:33:57 +01:00
parent a3468491a7
commit 80af8a143e
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -1,6 +1,6 @@
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import { createEmptyNotification, createNotification } from '@/scripts/create-notification'; import { createNotification } from '@/scripts/create-notification';
import { swLang } from '@/scripts/lang'; import { swLang } from '@/scripts/lang';
import { swNotificationRead } from '@/scripts/notification-read'; import { swNotificationRead } from '@/scripts/notification-read';
import { pushNotificationDataMap } from '@/types'; import { pushNotificationDataMap } from '@/types';
@ -67,8 +67,6 @@ self.addEventListener('push', ev => {
} }
break; break;
} }
return createEmptyNotification();
})); }));
}); });