summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/index.js b/js/index.js
index bf892be..983db0b 100644
--- a/js/index.js
+++ b/js/index.js
@@ -30,7 +30,12 @@ function cache_refresh(force) {
$(".dl-progress")
.show()
.addClass("alert-info")
- .html("Please reload the page once to activate service worker and populate offline cache.");
+ .html("Page will reload to activate service worker...");
+
+ window.setTimeout(function() {
+ window.location.reload();
+ }, 3*1000);
+
});
}