[POC] use serviceWorker from create-react-app (#1286)
* Service worker with toast notifications * Update CSP to allow fetches from now.sh * Fixed clearing timers * rounded icon for pwa (#1301) * rounded icon for pwa * cirle pwa app icon * fix fonts caching * fix app * fix css import * Updated csp tp inlcude worker-src: self * add worker CSP rule * use square icon Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru> Co-authored-by: Faustino Kialungila <Faustino.kialungila@gmail.com> Co-authored-by: kbariotis <konmpar@gmail.com>
This commit is contained in:
@ -2,10 +2,13 @@ import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import * as Sentry from "@sentry/browser";
|
||||
import * as SentryIntegrations from "@sentry/integrations";
|
||||
|
||||
import { TopErrorBoundary } from "./components/TopErrorBoundary";
|
||||
import { IsMobileProvider } from "./is-mobile";
|
||||
import App from "./components/App";
|
||||
import "./styles.scss";
|
||||
import { register as registerServiceWorker } from "./serviceWorker";
|
||||
|
||||
import "./css/styles.scss";
|
||||
|
||||
const SentryEnvHostnameMap: { [key: string]: string } = {
|
||||
"excalidraw.com": "production",
|
||||
@ -52,3 +55,5 @@ ReactDOM.render(
|
||||
</TopErrorBoundary>,
|
||||
rootElement,
|
||||
);
|
||||
|
||||
registerServiceWorker();
|
||||
|
Reference in New Issue
Block a user