Fix service worker cache #226

This commit is contained in:
RobinLinus 2020-12-29 20:08:23 +01:00
parent a9f9ee7359
commit ce8795dcb3

View file

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