소스 검색

Update ui.js

RobinLinus 5 년 전
부모
커밋
7120a74f97
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/scripts/ui.js

+ 1 - 1
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"