mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-15 07:35:49 -06:00
Self-review
This commit is contained in:
parent
856f150958
commit
6886ca24b1
2 changed files with 3 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ class Pruner {
|
|||
clearTimeout(this.timer);
|
||||
this.timer = null;
|
||||
}
|
||||
console.log("[VersionChecker] Stopped pruner checker");
|
||||
console.log("[Pruner] Stopped worker");
|
||||
}
|
||||
|
||||
async prune() {
|
||||
|
|
|
|||
|
|
@ -3,13 +3,12 @@
|
|||
* or configuration changes, prompting users to refresh the page.
|
||||
*/
|
||||
|
||||
const CHECK_INTERVAL = 30 * 1000; // 5 * 60 * 1000; // 5 minutes
|
||||
const intervalMillis = 5 * 60 * 1000; // 5 minutes
|
||||
|
||||
class VersionChecker {
|
||||
constructor() {
|
||||
this.initialConfigHash = null;
|
||||
this.listener = null;
|
||||
console.log("XXXXXXxxxx set listener null");
|
||||
this.timer = null;
|
||||
}
|
||||
|
||||
|
|
@ -21,7 +20,7 @@ class VersionChecker {
|
|||
// Store initial config hash from the config loaded at page load
|
||||
this.initialConfigHash = window.config?.config_hash || "";
|
||||
console.log("[VersionChecker] Starting version checker");
|
||||
this.timer = setInterval(() => this.checkVersion(), CHECK_INTERVAL);
|
||||
this.timer = setInterval(() => this.checkVersion(), intervalMillis);
|
||||
}
|
||||
|
||||
stopWorker() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue