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