fix persistent peerId -> displayName if PWA

This commit is contained in:
schlagmichdoch 2023-01-23 00:03:26 +01:00
parent 67273bc418
commit d424a0294a
3 changed files with 30 additions and 34 deletions

View file

@ -1,4 +1,4 @@
var CACHE_NAME = 'pairdrop-cache-v3';
var CACHE_NAME = 'pairdrop-cache-v4';
var urlsToCache = [
'index.html',
'./',
@ -16,13 +16,13 @@ var urlsToCache = [
self.addEventListener('install', function(event) {
// Perform install steps
event.waitUntil(
caches.open(CACHE_NAME)
.then(function(cache) {
console.log('Opened cache');
return cache.addAll(urlsToCache);
})
);
event.waitUntil(
caches.open(CACHE_NAME)
.then(function(cache) {
console.log('Opened cache');
return cache.addAll(urlsToCache);
})
);
});