From bbb50922bf2d80e6b510eaca35477efb75704722 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 19 Jul 2021 03:19:14 +0200 Subject: web build with offline support --- web-build/register-service-worker.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 web-build/register-service-worker.js (limited to 'web-build/register-service-worker.js') 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 -- cgit v1.2.3