mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-05 17:33:49 +00:00
Fix variable should be static
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user