summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/index.js b/js/index.js
index ea8c763..b3138b7 100644
--- a/js/index.js
+++ b/js/index.js
@@ -12,6 +12,11 @@ function cache_refresh(force) {
if (force || !stamp || ts - stamp > 3600 * 24 * 7) {
console.log('asking worker to refresh cache');
+
+ $(".dl-progress")
+ .fadeIn()
+ .html("Loading, please wait...");
+
navigator.serviceWorker.controller.postMessage("refresh-cache");
localforage.setItem("epube.cache-timestamp", ts);
}