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 | 0cf33b637e01d9a0c6ea26f4d549d981bafaa6d5 (patch) | |
| tree | 084da06fc774a9e875108cabc682dd5a7f764503 /static/service-worker.js | |
| parent | 8da087647b4c72ef6e7d22bee1f1d9f1dff6f25a (diff) | |
| download | coinos-ui-0cf33b637e01d9a0c6ea26f4d549d981bafaa6d5.tar.gz coinos-ui-0cf33b637e01d9a0c6ea26f4d549d981bafaa6d5.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); + }) + ); +}); |
