From 0282247a15855130de8d338416500b2095dce236 Mon Sep 17 00:00:00 2001 From: dwidge Date: Mon, 13 Nov 2023 18:52:54 +0200 Subject: [PATCH] Updates --- 404.html | 6 +++--- index.html | 6 +++--- manifest.webmanifest | 2 +- registerSW.js | 2 +- sw.js | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/404.html b/404.html index 1fb6019..25dbccf 100644 --- a/404.html +++ b/404.html @@ -19,9 +19,9 @@ sizes="128x128" /> - - - + + +
diff --git a/index.html b/index.html index 1fb6019..25dbccf 100644 --- a/index.html +++ b/index.html @@ -19,9 +19,9 @@ sizes="128x128" /> - - - + + +
diff --git a/manifest.webmanifest b/manifest.webmanifest index 8841994..dec2a70 100644 --- a/manifest.webmanifest +++ b/manifest.webmanifest @@ -1 +1 @@ -{"display":"standalone","background_color":"#222222","lang":"en","icons":[{"src":"apple-touch-icon.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]} +{"name":"Memaword","short_name":"Memaword","start_url":"/memaword","display":"standalone","background_color":"#222222","lang":"en","scope":"/memaword","description":"Memorize words and phrases","theme_color":"#ff00ff","icons":[{"src":"apple-touch-icon.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]} diff --git a/registerSW.js b/registerSW.js index d42ac9e..be90459 100644 --- a/registerSW.js +++ b/registerSW.js @@ -1 +1 @@ -if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('/sw.js', { scope: '/' })})} \ No newline at end of file +if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('/memaword/sw.js', { scope: '/memaword/' })})} \ No newline at end of file diff --git a/sw.js b/sw.js index 15ef66f..101f4c8 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const d=(d,n)=>(d=new URL(d+".js",n).href,i[d]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=d,e.onload=i,document.head.appendChild(e)}else e=d,importScripts(d),i()})).then((()=>{let e=i[d];if(!e)throw new Error(`Module ${d} didn’t register its module`);return e})));self.define=(n,o)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(i[r])return;let s={};const c=e=>d(e,r),f={module:{uri:r},exports:s,require:c};i[r]=Promise.all(n.map((e=>f[e]||c(e)))).then((e=>(o(...e),s)))}}define(["./workbox-92f81961"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"apple-touch-icon.png",revision:"1594838ed42b424ddd5d48b70ae046b5"},{url:"assets/index-86f39156.js",revision:null},{url:"assets/index-f073c358.css",revision:null},{url:"favicon.ico",revision:"cef0d0eabdbe94c9c50c4e393be3ddf1"},{url:"index.html",revision:"1eb80b50a60ecd6a2d814bffaedd9deb"},{url:"logo192.png",revision:"33dbdd0177549353eeeb785d02c294af"},{url:"logo512.png",revision:"917515db74ea8d1aee6a246cfbcc0b45"},{url:"manifest.json",revision:"d9d975cebe2ec20b6c652e1e4c12ccf0"},{url:"manifest.webmanifest",revision:"a138ef0b88afffef2c81500273d1d3b8"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"robots.txt",revision:"987497bfb623e1059632e5a607d56454"},{url:"apple-touch-icon.png",revision:"1594838ed42b424ddd5d48b70ae046b5"},{url:"favicon.ico",revision:"cef0d0eabdbe94c9c50c4e393be3ddf1"},{url:"index.html",revision:"d7e6786c10c115912bf90cd2d0e05cc6"},{url:"logo192.png",revision:"33dbdd0177549353eeeb785d02c294af"},{url:"logo512.png",revision:"917515db74ea8d1aee6a246cfbcc0b45"},{url:"manifest.json",revision:"d9d975cebe2ec20b6c652e1e4c12ccf0"},{url:"robots.txt",revision:"987497bfb623e1059632e5a607d56454"},{url:"manifest.webmanifest",revision:"a138ef0b88afffef2c81500273d1d3b8"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,i={};const d=(d,n)=>(d=new URL(d+".js",n).href,i[d]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=d,e.onload=i,document.head.appendChild(e)}else e=d,importScripts(d),i()})).then((()=>{let e=i[d];if(!e)throw new Error(`Module ${d} didn’t register its module`);return e})));self.define=(n,c)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(i[o])return;let r={};const s=e=>d(e,o),f={module:{uri:o},exports:r,require:s};i[o]=Promise.all(n.map((e=>f[e]||s(e)))).then((e=>(c(...e),r)))}}define(["./workbox-92f81961"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"apple-touch-icon.png",revision:"1594838ed42b424ddd5d48b70ae046b5"},{url:"assets/index-86f39156.js",revision:null},{url:"assets/index-f073c358.css",revision:null},{url:"favicon.ico",revision:"cef0d0eabdbe94c9c50c4e393be3ddf1"},{url:"index.html",revision:"c367c5ef73cdb06e2997ee9d309934c6"},{url:"logo192.png",revision:"33dbdd0177549353eeeb785d02c294af"},{url:"logo512.png",revision:"917515db74ea8d1aee6a246cfbcc0b45"},{url:"manifest.json",revision:"d9d975cebe2ec20b6c652e1e4c12ccf0"},{url:"manifest.webmanifest",revision:"e8d4fea0f0d52a3c4624e484bff83683"},{url:"registerSW.js",revision:"5bd60d0fe13c18a8a849ad667d99059d"},{url:"robots.txt",revision:"987497bfb623e1059632e5a607d56454"},{url:"apple-touch-icon.png",revision:"1594838ed42b424ddd5d48b70ae046b5"},{url:"favicon.ico",revision:"cef0d0eabdbe94c9c50c4e393be3ddf1"},{url:"index.html",revision:"d7e6786c10c115912bf90cd2d0e05cc6"},{url:"logo192.png",revision:"33dbdd0177549353eeeb785d02c294af"},{url:"logo512.png",revision:"917515db74ea8d1aee6a246cfbcc0b45"},{url:"manifest.json",revision:"d9d975cebe2ec20b6c652e1e4c12ccf0"},{url:"robots.txt",revision:"987497bfb623e1059632e5a607d56454"},{url:"manifest.webmanifest",revision:"e8d4fea0f0d52a3c4624e484bff83683"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));