diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-06-19 13:49:57 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-06-19 13:49:57 +0300 |
| commit | cae23c5e14a0ed4d80e9edde351cb4066e3e350c (patch) | |
| tree | ebaf177ad8bad25db0b440f08bb25dcef2c73bde /src | |
| parent | ef7d52f85dfe611d536fcb96c3a61db1b8b67481 (diff) | |
| download | the-epube-cae23c5e14a0ed4d80e9edde351cb4066e3e350c.tar.gz the-epube-cae23c5e14a0ed4d80e9edde351cb4066e3e350c.tar.xz | |
add hourly update checks using service worker
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/app.js b/src/app.js index 4bc10b4..96c7a0e 100644 --- a/src/app.js +++ b/src/app.js @@ -231,14 +231,8 @@ class AppClass extends AppCommon { this.populateList(); if ('serviceWorker' in navigator) { - navigator.serviceWorker.addEventListener('message', () => { - // Future: handle SW messages (e.g., update available notifications) - }); - this.showCovers(); this.updateOfflinePrompts(); - //this.refreshCache(); - } else { $(".container-main") .addClass("alert alert-danger") @@ -247,10 +241,6 @@ class AppClass extends AppCommon { } initCommonEventHandlers() { - /* $(".refresh_cache_link").on('click', () => { - this.refreshCache(true); - }); */ - $(".remove_all_downloads").on('click', () => { this.removeAll(); }); @@ -264,6 +254,11 @@ class AppClass extends AppCommon { this.getAll(); }); + $(".update_link").on('click', (e) => { + e.preventDefault(); + window.location.reload(); + }); + $(".cosmetic_version").attr('title', this.cosmeticVersion); } |
