fix restart animation when last peer left

This commit is contained in:
schlagmichdoch 2023-01-20 01:58:49 +01:00
parent f97bd6df9e
commit a0f46475dd

View file

@ -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) {