From: Brendan Hansen Date: Mon, 18 Apr 2022 18:59:09 +0000 (+0000) Subject: made pwa score better X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=531b37741a5ce583f5e77cf91fbc2538c1b18b54;p=onyx-live.git made pwa score better --- diff --git a/static/logo_512.png b/static/logo_512.png new file mode 100644 index 0000000..71698c6 Binary files /dev/null and b/static/logo_512.png differ diff --git a/static/manifest.json b/static/manifest.json index 6efeb05..2d3ce62 100644 --- a/static/manifest.json +++ b/static/manifest.json @@ -6,6 +6,11 @@ "src": "/playground/static/logo_256.png", "type": "image/png", "sizes": "256x256" + }, + { + "src": "/playground/static/logo_512.png", + "type": "image/png", + "sizes": "512x512" } ], "start_url": "/playground/?source=pwa", diff --git a/static/src/service-worker.js b/static/src/service-worker.js index 56bbb8a..fcdb3ac 100644 --- a/static/src/service-worker.js +++ b/static/src/service-worker.js @@ -1,3 +1,5 @@ +const app_version = 1; + const cacheName = 'cache-v1'; const precacheResources = [ '/playground', diff --git a/templates/index.html b/templates/index.html index fd55860..bda2f1d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,7 @@ Onyx compiler + @@ -12,13 +13,13 @@ - - - + + + + + + - - - @@ -48,7 +49,7 @@

-            
+