mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-06 01:43:48 +00:00
fix restart animation when last peer left
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user