Browse Source

Fix service worker cache #226

RobinLinus 4 years ago
parent
commit
ce8795dcb3
1 changed files with 10 additions and 9 deletions
  1. 10 9
      client/service-worker.js

+ 10 - 9
client/service-worker.js

@@ -1,13 +1,14 @@
-var CACHE_NAME = 'snapdrop-cache-v1.045';
+var CACHE_NAME = 'snapdrop-cache-v2';
 var urlsToCache = [
-  '/',
-  '/styles.css',
-  '/scripts/network.js',
-  '/scripts/ui.js',
-  '/scripts/clipboard.js',
-  '/scripts/theme.js',
-  '/sounds/blop.mp3',
-  '/images/favicon-96x96.png'
+  'index.html',
+  './',
+  'styles.css',
+  'scripts/network.js',
+  'scripts/ui.js',
+  'scripts/clipboard.js',
+  'scripts/theme.js',
+  'sounds/blop.mp3',
+  'images/favicon-96x96.png'
 ];
 
 self.addEventListener('install', function(event) {