mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
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…
Add table
Add a link
Reference in a new issue