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/service-worker.js | |
| parent | 64284b65214f049f62c4ac7b123a64a164ecc5bf (diff) | |
| download | coinos-ui-055aaea3d02995614b044f66c4a72d68385b1463.tar.gz coinos-ui-055aaea3d02995614b044f66c4a72d68385b1463.zip | |
manifest and service worker
Diffstat (limited to 'static/service-worker.js')
| -rw-r--r-- | static/service-worker.js | 7 |
1 files changed, 7 insertions, 0 deletions
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); + }) + ); +}); |
