Update ui.js

This commit is contained in:
ErikrafT 2025-05-08 17:31:54 -03:00 committed by GitHub
parent 2e7bef9f5c
commit e2c090a2a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -186,6 +186,12 @@ class PeersUI {
this._onDragEnd();
// Verifica se há peers conectados
if (!$$('x-peer')) {
window.pairdrop.toast.show('Nenhum dispositivo conectado para compartilhar');
return;
}
if ($$('x-peer') && $$('x-peer').contains(e.target)) return; // dropped on peer
let files = e.dataTransfer.files;