mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
Update ui.js
This commit is contained in:
parent
097c3c3f50
commit
7120a74f97
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class PeersUI {
|
||||||
const files = e.clipboardData.files || e.clipboardData.items
|
const files = e.clipboardData.files || e.clipboardData.items
|
||||||
.filter(i => i.type.indexOf('image') > -1)
|
.filter(i => i.type.indexOf('image') > -1)
|
||||||
.map(i => i.getAsFile());
|
.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
|
// send the pasted image content to the only peer if there is one
|
||||||
// otherwise, select the peer somehow by notifying the client that
|
// otherwise, select the peer somehow by notifying the client that
|
||||||
// "image data has been pasted, click the client to which to send it"
|
// "image data has been pasted, click the client to which to send it"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue