feat(*): Add service worker

This commit is contained in:
Josh Creek
2023-07-12 11:49:11 +00:00
parent 5b9bd29382
commit 6dc835f4c9
4 changed files with 67 additions and 10 deletions
+8
View File
@@ -0,0 +1,8 @@
self.addEventListener('install', (event) => {
console.log('[Service Worker] Installing Service Worker ...', event);
});
self.addEventListener('activate', (event) => {
console.log('[Service Worker] Activating Service Worker ...', event);
return self.clients.claim();
});
+13 -1
View File
@@ -1 +1,13 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#8D6A9F","background_color":"#ffffff","display":"standalone"}
{
"name": "Estimation Poker",
"short_name": "Estimation Poker",
"description": "A cool estimation poker app",
"icons": [
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
],
"start_url": "/",
"theme_color": "#8D6A9F",
"background_color": "#ffffff",
"display": "standalone"
}