import { registerSW } from 'virtual:pwa-register' const updateSW = registerSW({ onNeedRefresh() { // ! FIXME: temp updateSW(true); // show a prompt to user }, onOfflineReady() { console.info('Ready to work offline.'); // show a ready to work offline to user }, }) import "./styles/index.scss"; import { render } from "preact"; import { App } from "./pages/app"; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion render(, document.getElementById("app")!);