mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-15 23:20:11 -07:00
Run animation until peer joins (Fix #213)
This commit is contained in:
parent
727caa9328
commit
0115c6a4de
@ -27,6 +27,7 @@ class PeersUI {
|
||||
if ($(peer.id)) return; // peer already exists
|
||||
const peerUI = new PeerUI(peer);
|
||||
$$('x-peers').appendChild(peerUI.$el);
|
||||
setTimeout(e => window.animateBackground(false), 1000); // Stop animation
|
||||
}
|
||||
|
||||
_onPeers(peers) {
|
||||
@ -613,7 +614,6 @@ Events.on('load', () => {
|
||||
};
|
||||
init();
|
||||
animate();
|
||||
setTimeout(e => window.animateBackground(false), 3000);
|
||||
});
|
||||
|
||||
Notifications.PERMISSION_ERROR = `
|
||||
|
Loading…
x
Reference in New Issue
Block a user