summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-04 15:24:10 +0300
committerAndrew Dolgov <[email protected]>2021-02-04 15:24:10 +0300
commite3322036c0d76f667bf35cdd0f82ab0163a68ea0 (patch)
tree3308d53b621578c7836d93a3e86f3621c1679b95 /js
parentddd1d03ff6ebab4b9dc8b4536b663cf03dc859cb (diff)
add workaround for gulp 4 not touching files on update
reader: style dropdowns better for dark mode
Diffstat (limited to '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');