Update ui.js
This commit is contained in:
parent
2e7bef9f5c
commit
e2c090a2a6
|
@ -186,6 +186,12 @@ class PeersUI {
|
||||||
|
|
||||||
this._onDragEnd();
|
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
|
if ($$('x-peer') && $$('x-peer').contains(e.target)) return; // dropped on peer
|
||||||
|
|
||||||
let files = e.dataTransfer.files;
|
let files = e.dataTransfer.files;
|
||||||
|
|
Loading…
Reference in New Issue