snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit 0115c6a4de27b8e6553c639804d86d8b977c8703
parent 727caa93282a4affdba236932c8ea44ecf915289
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date:   Sat, 16 Jan 2021 21:58:59 +0100

Run animation until peer joins (Fix #213)

Diffstat:
Mclient/scripts/ui.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/scripts/ui.js b/client/scripts/ui.js @@ -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 = `