From cc0f61ea681151bed60fe6cc924f0675f91a7ae1 Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Sun, 12 Jun 2022 19:07:41 +0200 Subject: [PATCH] More cleanup (#111) * Missing loggin config and cleanup * Remove worker --- public/sw.js | 50 -------------------------------------- resources/assets/js/app.js | 4 --- 2 files changed, 54 deletions(-) delete mode 100644 public/sw.js diff --git a/public/sw.js b/public/sw.js deleted file mode 100644 index 0a6791d..0000000 --- a/public/sw.js +++ /dev/null @@ -1,50 +0,0 @@ -const cacheName = 'hatchery::22061217'; - -self.addEventListener('install', e => { - e.waitUntil( - caches.open(cacheName).then(cache => { - return cache.addAll([ - '/svg/500.svg', - '/svg/503.svg', - '/svg/403.svg', - '/svg/404.svg', - '/css/app.css', - '/js/app.js', - '/img/isok.gif', - '/img/rulez.gif', - '/img/sucks.gif', - '/img/alert.gif', - '/img/bs.png', - '/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff', - '/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.eot', - '/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2', - '/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.ttf', - '/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.svg', - '/mix-manifest.json', - '/js/806.js', - '/js/867.js', - '/vendor/webauthn/webauthn.js', - '/vendor/horizon/app.css', - '/vendor/horizon/img/horizon.svg', - '/vendor/horizon/img/favicon.png', - '/vendor/horizon/img/sprite.svg', - '/vendor/horizon/app-dark.css', - '/vendor/horizon/mix-manifest.json', - '/vendor/horizon/app.js', - '/img/git.svg', - '/img/collab.svg', - '/vendor/livewire/livewire.js' - ]).then(() => self.skipWaiting()); - }) - ); -}); - -self.addEventListener('fetch', event => { - event.respondWith( - caches.open(cacheName).then(cache => { - return cache.match(event.request).then(res => { - return res || fetch(event.request); - }); - }) - ); -}); diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index e862610..a8bb17c 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -1,9 +1,5 @@ /* global require */ -if('serviceWorker' in navigator) { - navigator.serviceWorker.register('/sw.js'); -} - /** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when