mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-25 09:16:18 -04:00
fix persistent peerId -> displayName if PWA
This commit is contained in:
parent
67273bc418
commit
d424a0294a
3 changed files with 30 additions and 34 deletions
|
@ -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);
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue