diff options
| author | Adam Soltys <[email protected]> | 2022-11-09 23:05:09 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-09 23:05:09 -0800 |
| commit | 055aaea3d02995614b044f66c4a72d68385b1463 (patch) | |
| tree | 084da06fc774a9e875108cabc682dd5a7f764503 /static | |
| parent | 64284b65214f049f62c4ac7b123a64a164ecc5bf (diff) | |
| download | coinos-ui-055aaea3d02995614b044f66c4a72d68385b1463.tar.gz coinos-ui-055aaea3d02995614b044f66c4a72d68385b1463.zip | |
manifest and service worker
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); + }) + ); +}); |
