summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index 04fd5f1..f3e30bc 100644
--- a/js/app.js
+++ b/js/app.js
@@ -158,6 +158,8 @@ const App = {
refreshCache: function(force) {
if ('serviceWorker' in navigator) {
localforage.getItem("epube.cache-timestamp").then(function(stamp) {
+ console.log('stamp', stamp, 'last mtime', App.last_mtime);
+
if (force || stamp != App.last_mtime) {
console.log('asking worker to refresh cache');