diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/manifest.json | 17 | ||||
| -rw-r--r-- | static/manifest.webmanifest | 2 | ||||
| -rw-r--r-- | static/service-worker.js | 7 |
3 files changed, 8 insertions, 18 deletions
diff --git a/static/manifest.json b/static/manifest.json deleted file mode 100644 index 3ce34fb8..00000000 --- a/static/manifest.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "short_name": "coinos", - "name": "coinos", - "icons": [ - { - "src": "/icons/coinos.png", - "type": "image/webp", - "sizes": "1024x1024", - "purpose": "any maskable" - } - ], - "start_url": "/", - "background_color": "#000000", - "display": "standalone", - "scope": "/", - "theme_color": "#000000" -} diff --git a/static/manifest.webmanifest b/static/manifest.webmanifest index f77d93c7..edd56cd7 100644 --- a/static/manifest.webmanifest +++ b/static/manifest.webmanifest @@ -1,7 +1,7 @@ { "theme_color": "#fff", "background_color": "#000", - "display": "fullscreen", + "display": "standalone", "scope": "/", "start_url": "/", "name": "Coinos", diff --git a/static/service-worker.js b/static/service-worker.js new file mode 100644 index 00000000..7952231d --- /dev/null +++ b/static/service-worker.js @@ -0,0 +1,7 @@ +self.addEventListener('fetch', function(event) { + event.respondWith( + caches.match(event.request).then(function(response) { + return response || fetch(event.request); + }) + ); +}); |
