MCPcopy
hub / github.com/SnapDrop/snapdrop / _onPeerJoined

Method _onPeerJoined

client/scripts/ui.js:26–31  ·  view source on GitHub ↗
(peer)

Source from the content-addressed store, hash-verified

24 }
25
26 _onPeerJoined(peer) {
27 if ($(peer.id)) return; // peer already exists
28 const peerUI = new PeerUI(peer);
29 $$('x-peers').appendChild(peerUI.$el);
30 setTimeout(e => window.animateBackground(false), 1750); // Stop animation
31 }
32
33 _onPeers(peers) {
34 this._clearPeers();

Callers 2

constructorMethod · 0.95
_onPeersMethod · 0.95

Calls 2

$Function · 0.85
$$Function · 0.85

Tested by

no test coverage detected