diff options
Diffstat (limited to '')
-rw-r--r-- | dist/cache_name.txt | 2 | ||||
-rwxr-xr-x | dist/js/app.js | 8 | ||||
-rwxr-xr-x | dist/pages/about.html | 2 | ||||
-rwxr-xr-x | dist/sw.js | 4 |
4 files changed, 9 insertions, 7 deletions
diff --git a/dist/cache_name.txt b/dist/cache_name.txt index 93c9aef..5709ad0 100644 --- a/dist/cache_name.txt +++ b/dist/cache_name.txt @@ -2,4 +2,4 @@ -///site-static-1.0.14.3-beta-5f22473||| +///site-static-1.0.14.3-beta-cdf17df||| diff --git a/dist/js/app.js b/dist/js/app.js index e2758ff..bfa51ef 100755 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -3,7 +3,7 @@ const app_version = "1.0.14.3-beta"; -const previous_commit = "5f22473be3faa9cd2a50444f8bea4af46725c030"; +const previous_commit = "cdf17dfd5d57b5461831868feb2497073a9b19d6"; const BEZIAPP_UPDATE_INTERVAL = 300; // update vsakih 300 sekund if ("serviceWorker" in navigator) { @@ -110,9 +110,11 @@ window.onunhandledrejection = error_report_function; document.addEventListener("DOMContentLoaded", () => { var update_interval = setInterval(() => { // ok, it's value is never read, so what?! localforage.getItem("lastUpdate").then((data) => { - if (Math.floor(Date.now() / 1000) > data + BEZIAPP_UPDATE_INTERVAL) { + if (Math.floor(Date.now() / 1000) > Number(data) + BEZIAPP_UPDATE_INTERVAL) { // trigger an update - update_app_function(); + localforage.setItem("lastUpdate", Math.floor(Date.now() / 1000)) .then(()=>{ + update_app_function(); + }); } }); }, 1000 * BEZIAPP_UPDATE_INTERVAL); diff --git a/dist/pages/about.html b/dist/pages/about.html index 5af316e..bc738ce 100755 --- a/dist/pages/about.html +++ b/dist/pages/about.html @@ -161,7 +161,7 @@ <div class="row"> <p> <small> - ^HEAD 5f22473be3faa9cd2a50444f8bea4af46725c030 + ^HEAD cdf17dfd5d57b5461831868feb2497073a9b19d6 </small> </p> </div> @@ -3,8 +3,8 @@ // Change version to cause cache refresh -const static_cache_name = "site-static-1.0.14.3-beta-5f22473"; -// commit before the latest is 5f22473be3faa9cd2a50444f8bea4af46725c030 +const static_cache_name = "site-static-1.0.14.3-beta-cdf17df"; +// commit before the latest is cdf17dfd5d57b5461831868feb2497073a9b19d6 // Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js // sw.js NE SME BITI CACHAN, ker vsebuje verzijo! |