snapdrop

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

commit 7120a74f9773718e0ea63cd51ab3568a34befe8b
parent 097c3c3f5020aa09cf5a41e81b8a4e3850c35f75
Author: RobinLinus <RobinLinus@users.noreply.github.com>
Date:   Mon,  9 Mar 2020 22:49:59 +0100

Update ui.js
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 @@ -47,7 +47,7 @@ class PeersUI { const files = e.clipboardData.files || e.clipboardData.items .filter(i => i.type.indexOf('image') > -1) .map(i => i.getAsFile()); - const peers = document.querySelectorAll('x-peer').length; + const peers = document.querySelectorAll('x-peer'); // send the pasted image content to the only peer if there is one // otherwise, select the peer somehow by notifying the client that // "image data has been pasted, click the client to which to send it"