mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Fix variable should be static
This commit is contained in:
parent
a5dc8b6da2
commit
c37412cfd3
1 changed files with 1 additions and 1 deletions
|
@ -2696,7 +2696,7 @@ class NoSleepUI {
|
||||||
}
|
}
|
||||||
|
|
||||||
static enable() {
|
static enable() {
|
||||||
if (!this._interval) {
|
if (!NoSleepUI._interval) {
|
||||||
NoSleepUI._nosleep.enable();
|
NoSleepUI._nosleep.enable();
|
||||||
// Disable after 10s if all peers are idle
|
// Disable after 10s if all peers are idle
|
||||||
NoSleepUI._interval = setInterval(() => NoSleepUI.disableIfPeersIdle(), 10000);
|
NoSleepUI._interval = setInterval(() => NoSleepUI.disableIfPeersIdle(), 10000);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue