diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-19 03:19:14 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-19 03:19:14 +0200 |
commit | bbb50922bf2d80e6b510eaca35477efb75704722 (patch) | |
tree | c18316bd61ca52c09166b88084eaa76554f0ecf6 /web-build/register-service-worker.js | |
parent | 611085d403550303dbf66ec3f9152f772377f1c4 (diff) |
web build with offline support
Diffstat (limited to 'web-build/register-service-worker.js')
-rw-r--r-- | web-build/register-service-worker.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web-build/register-service-worker.js b/web-build/register-service-worker.js new file mode 100644 index 0000000..ea5cca4 --- /dev/null +++ b/web-build/register-service-worker.js @@ -0,0 +1 @@ +"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("/expo-service-worker.js",{scope:"/"}).then((function(e){})).catch((function(e){console.info("Failed to register service-worker",e)}))}));
\ No newline at end of file |