diff --git a/src/App.vue b/src/App.vue index 331a2065..a74c896e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,6 +9,7 @@ + @@ -16,6 +17,7 @@ + + + + diff --git a/src/main.js b/src/main.js index bc3d80b8..50480077 100644 --- a/src/main.js +++ b/src/main.js @@ -71,8 +71,6 @@ import "uno.css"; const timeAgo = new TimeAgo("en-US"); -import("./registerServiceWorker"); - const mixin = { methods: { timeFormat: function (duration) { diff --git a/src/registerServiceWorker.js b/src/registerServiceWorker.js deleted file mode 100644 index a5369ff0..00000000 --- a/src/registerServiceWorker.js +++ /dev/null @@ -1,7 +0,0 @@ -/* eslint-disable no-console */ - -import { registerSW } from "virtual:pwa-register"; - -if (process.env.NODE_ENV === "production") { - registerSW(); -} diff --git a/vite.config.js b/vite.config.js index 86086d08..21598ab6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,7 +19,7 @@ export default defineConfig({ targets: ["defaults", "not IE 11"], }), VitePWA({ - registerType: "autoUpdate", + registerType: "prompt", workbox: { globPatterns: ["**/*.{js,css,html,ico,svg,png}", "manifest.webmanifest"], globIgnores: ["**/*-legacy-*.js"],