fix: Remove vite-plugin-pwa, avoid this plugin caches files unexpectedly (#6907)
Also fixed webpush wrong msg Co-authored-by: Louis Lam <louislam@users.noreply.github.com>pull/6894/head
parent
72a5a36541
commit
5561842dea
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,3 @@
|
||||
// Needed per Vite PWA docs
|
||||
import { precacheAndRoute } from "workbox-precaching";
|
||||
declare let self: ServiceWorkerGlobalScope;
|
||||
precacheAndRoute(self.__WB_MANIFEST);
|
||||
|
||||
// Receive push notifications
|
||||
self.addEventListener("push", function (event) {
|
||||
if (self.Notification?.permission !== "granted") {
|
||||
Loading…
Reference in new issue