66bac50de3
* fix: refresh sw when browser refreshed * dummy test * enable immediate reload * test * fix * autoupdate * don't immediate * test * testing testing * test * test * its same * revert logs * fix types ---------
17 lines
454 B
TypeScript
17 lines
454 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import ExcalidrawApp from "./excalidraw-app";
|
|
import { registerSW } from "virtual:pwa-register";
|
|
|
|
import "./excalidraw-app/sentry";
|
|
window.__EXCALIDRAW_SHA__ = import.meta.env.VITE_APP_GIT_SHA;
|
|
const rootElement = document.getElementById("root")!;
|
|
const root = createRoot(rootElement);
|
|
registerSW();
|
|
|
|
root.render(
|
|
<StrictMode>
|
|
<ExcalidrawApp />
|
|
</StrictMode>,
|
|
);
|