summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-05 14:56:33 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-05 14:56:33 +0900
commit803fb0898ab20a47871be06facd29256724fd339 (patch)
tree6e8bce60d0a7605198f4cbf0b88d49f7cba2f174 /src
parent[Client] Use localStorage instead of window (diff)
downloadmisskey-803fb0898ab20a47871be06facd29256724fd339.tar.gz
misskey-803fb0898ab20a47871be06facd29256724fd339.tar.bz2
misskey-803fb0898ab20a47871be06facd29256724fd339.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/client/app/sw.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/app/sw.js b/src/client/app/sw.js
index c90e92a79e..ccf6dc818e 100644
--- a/src/client/app/sw.js
+++ b/src/client/app/sw.js
@@ -4,7 +4,6 @@
import composeNotification from './common/scripts/compose-notification';
import { erase } from '../../prelude/array';
-import { clientVersion } from './config';
// キャッシュするリソース
const cachee = [
@@ -17,7 +16,7 @@ self.addEventListener('install', ev => {
ev.waitUntil(Promise.all([
self.skipWaiting(), // Force activate
- caches.open(clientVersion).then(cache => cache.addAll(cachee)) // Cache
+ caches.open(_VERSION_).then(cache => cache.addAll(cachee)) // Cache
]));
});
@@ -26,7 +25,7 @@ self.addEventListener('activate', ev => {
// Clean up old caches
ev.waitUntil(
caches.keys().then(keys => Promise.all(
- erase(clientVersion, keys)
+ erase(_VERSION_, keys)
.map(key => caches.delete(key))
))
);