From e3322036c0d76f667bf35cdd0f82ab0163a68ea0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Feb 2021 15:24:10 +0300 Subject: add workaround for gulp 4 not touching files on update reader: style dropdowns better for dark mode --- js/app.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/app.js') 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'); -- cgit v1.2.3