summaryrefslogtreecommitdiff
path: root/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/index.js')
-rw-r--r--js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/index.js b/js/index.js
index 336232f..b314cc0 100644
--- a/js/index.js
+++ b/js/index.js
@@ -1,12 +1,12 @@
function cache_refresh() {
if ('serviceWorker' in navigator) {
- localforage.getItem("epube-cache.timestamp").then(function(stamp) {
+ localforage.getItem("epube.cache-timestamp").then(function(stamp) {
var ts = parseInt(new Date().getTime()/1000);
if (!stamp || ts - stamp > 3600) {
console.log('asking worker to refresh cache');
navigator.serviceWorker.controller.postMessage("refresh-cache");
- localforage.setItem("epube-cache.timestamp", ts);
+ localforage.setItem("epube.cache-timestamp", ts);
}
});