fix restart animation when last peer left
This commit is contained in:
parent
f97bd6df9e
commit
a0f46475dd
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class PeersUI {
|
|||
const $peer = $(peerId);
|
||||
if (!$peer) return;
|
||||
$peer.remove();
|
||||
setTimeout(_ => window.animateBackground(true), 1750); // Start animation again
|
||||
if ($$('x-peers:empty')) setTimeout(_ => window.animateBackground(true), 1750); // Start animation again
|
||||
}
|
||||
|
||||
_onPeerLeft(peerId) {
|
||||
|
|
Loading…
Reference in a new issue