summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-11-19 14:49:13 +0300
committerAndrew Dolgov <[email protected]>2019-11-19 14:49:13 +0300
commit6c037531be3d0e5e4aeb0b1836a960941d1062a2 (patch)
tree11ff005d0a9772a6d772a75bd3d56ea489f74876 /index.php
parent11bcabe3bf074c922c95aa945504f427c15dde7c (diff)
use map + Promise.all instead of plain iteration while fetching cached urls
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 32e611a..1b39ecb 100644
--- a/index.php
+++ b/index.php
@@ -164,6 +164,8 @@
}
if (event.data == 'client-reload') {
+ const ts = parseInt(new Date().getTime()/1000);
+ localforage.setItem("epube.cache-timestamp", ts);
window.location.reload()
}