-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathservice-worker.js
1 lines (1 loc) · 3.4 KB
/
service-worker.js
1
const PRECACHE = 'bvad3-Data-v1609868971013';const RUNTIME = 'bvad3-runtime-v1609868971013';const PRECACHE_URLS = ['./index.html','./manifest.json','https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js','https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.js','https://cdn.jsdelivr.net/npm/[email protected]/dist/vue-router.min.js','https://cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js','https://cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js','https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.20/lodash.min.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-app.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-analytics.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-auth.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-firestore.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-messaging.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-storage.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-performance.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-database.js','https://www.gstatic.com/firebasejs/8.2.1/firebase-functions.js','./scripts/app.js','https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css','https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css','./styles/app.css','https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900','./assets/1.png','./assets/red.png','./assets/sadface.png','./assets/upload.php','./assets/2.png','./assets/avatar.png','./assets/gray.png','./assets/green.png','./assets/happyface.png','./assets/neutralface.png','./assets/orange.png','./assets/1.jpg','./assets/android-chrome-512x512.png','./assets/yuna.jpg','./assets/apple-touch-icon.png','./assets/background.jpg','./assets/bg-2.jpg','./assets/bird.jpg','./assets/clint-mckoy.jpg','./assets/dark-beach.jpg','./assets/favicon.ico','./assets/favicon-16x16.png','./assets/favicon-32x32.png','./assets/2.jpg','./assets/firebase-logo.png','./assets/lock.jpg','./assets/login.jpg','./assets/material.jpg','./assets/mssqlconfig.php','./assets/mysqlconfig.php','./assets/office.jpg','./assets/parallax1.jpg','./assets/parallax2.jpg','./assets/planet.jpg','./assets/pricing.jpg','./assets/register.jpg','./assets/sample-1.jpg','./assets/3.jpg','./assets/sky.jpg','./assets/sponge.png','./assets/squirrel.jpg','./assets/test.db','./assets/4.jpg','./assets/5.jpg','./assets/vbanner.jpg','./assets/android-chrome-192x192.png'];var _B=this;_B.addEventListener('install', function (event) {event.waitUntil(caches.open(PRECACHE).then(function (cache) {return cache.addAll(PRECACHE_URLS);}).then(_B.skipWaiting()));});_B.addEventListener('activate', function (event) {var currentCaches = [PRECACHE, RUNTIME];event.waitUntil(caches.keys().then(function (cacheNames) {return cacheNames.filter(function (cacheName) {return !currentCaches.includes(cacheName);});}).then(function (cachesToDelete) {return Promise.all(cachesToDelete.map(function (cacheToDelete) {return caches.delete(cacheToDelete);}));}).then(function () {return _B.clients.claim();}));});_B.addEventListener('fetch', function (event) {if (event.request.url.indexOf('donotdelete.gif') == -1) {event.respondWith(caches.match(event.request).then(function (cachedResponse) {if (cachedResponse) {return cachedResponse;}return caches.open(RUNTIME).then(function (cache) {return fetch(event.request).then(function (response) {return cache.put(event.request, response.clone()).then(function () {return response;});});});}));}});