From c37412cfd34c198dcec0f47d1a8278c08c0f9c64 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Mon, 5 Feb 2024 02:08:26 +0100 Subject: [PATCH] Fix variable should be static --- public/scripts/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index 2c17bc2..f29e204 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -2696,7 +2696,7 @@ class NoSleepUI { } static enable() { - if (!this._interval) { + if (!NoSleepUI._interval) { NoSleepUI._nosleep.enable(); // Disable after 10s if all peers are idle NoSleepUI._interval = setInterval(() => NoSleepUI.disableIfPeersIdle(), 10000);