✨ Add PWA Support
This commit is contained in:
@ -9,6 +9,11 @@
|
||||
--bottomnav-active-color: #7ca74b;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -1,9 +1,14 @@
|
||||
import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import { registerSW } from "virtual:pwa-register";
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(router);
|
||||
|
||||
app.mount("#app");
|
||||
|
||||
registerSW({
|
||||
onOfflineReady() {},
|
||||
});
|
||||
|
Reference in New Issue
Block a user