[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:
Timur Khazamov 2020-04-13 16:08:39 +02:00 committed by GitHub
parent e158dbc45a
commit 4228c2e094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 308 additions and 31 deletions

View file

@ -54,8 +54,9 @@ const elements = [
},
];
registerFont("./public/FG_Virgil.ttf", { family: "Virgil" });
registerFont("./public/Cascadia.ttf", { family: "Cascadia" });
registerFont("./static/fonts/FG_Virgil.ttf", { family: "Virgil" });
registerFont("./static/fonts/Cascadia.ttf", { family: "Cascadia" });
const canvas = exportToCanvas(
elements as any,
getDefaultAppState(),