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

Method _onFileProgress

client/scripts/ui.js:44–49  ·  view source on GitHub ↗
(progress)

Source from the content-addressed store, hash-verified

42 }
43
44 _onFileProgress(progress) {
45 const peerId = progress.sender || progress.recipient;
46 const $peer = $(peerId);
47 if (!$peer) return;
48 $peer.ui.setProgress(progress.progress);
49 }
50
51 _clearPeers() {
52 const $peers = $$('x-peers').innerHTML = '';

Callers 1

constructorMethod · 0.95

Calls 2

$Function · 0.85
setProgressMethod · 0.80

Tested by

no test coverage detected