comply with pwa requirements

This commit is contained in:
Liam 2022-11-11 12:30:21 -05:00
parent ae596a3088
commit 6f8788e329
2 changed files with 6 additions and 1 deletions

View file

@ -4,7 +4,7 @@
"icons": [ "icons": [
{ {
"src": "static/img/ntfy_64.png", "src": "static/img/ntfy_64.png",
"sizes": "64x64 32x32 24x24 16x16", "sizes": "64x64",
"type": "image/png" "type": "image/png"
}, },
{ {

View file

@ -21,3 +21,8 @@ clientsClaim();
// even if you decide not to use precaching. See https://cra.link/PWA // even if you decide not to use precaching. See https://cra.link/PWA
precacheAndRoute(self.__WB_MANIFEST); precacheAndRoute(self.__WB_MANIFEST);
self.addEventListener("fetch", event => {
// Dummy event listener to pass PWA installation criteria.
console.log('Fetch event fired.')
})