summaryrefslogtreecommitdiff
path: root/web-build/register-service-worker.js
diff options
context:
space:
mode:
authorKirill Rogovoy <[email protected]>2021-07-20 21:24:52 +0300
committerKirill Rogovoy <[email protected]>2021-07-20 21:24:52 +0300
commit5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb (patch)
tree273dfc086444533d86d580961c92ba8d14781a67 /web-build/register-service-worker.js
parentf0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (diff)
WIP
Diffstat (limited to 'web-build/register-service-worker.js')
-rw-r--r--web-build/register-service-worker.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/web-build/register-service-worker.js b/web-build/register-service-worker.js
deleted file mode 100644
index 94ece4f..0000000
--- a/web-build/register-service-worker.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/* eslint-env browser */
-
-if ('serviceWorker' in navigator) {
- window.addEventListener('load', function () {
- navigator.serviceWorker
- .register('/expo-service-worker.js', { scope: '/' })
- .then(function (info) {
- // console.info('Registered service-worker', info);
- })
- .catch(function (error) {
- console.info('Failed to register service-worker', error);
- });
- });
-}