Update ui.js

This commit is contained in:
ErikrafT 2025-05-06 21:10:00 -03:00 committed by GitHub
parent c58a2da5d3
commit 8015155f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 8 deletions

View File

@ -201,9 +201,9 @@ class PeersUI {
await window.pairdrop.contentModeration.processFile(file);
}
Events.fire('activate-share-mode', {
files: files
});
Events.fire('activate-share-mode', {
files: files
});
} catch (error) {
window.pairdrop.toast.show(error.message);
}
@ -932,14 +932,14 @@ class ReceiveFileDialog extends ReceiveDialog {
}
this.filesQueue.push({
peerId: peerId,
files: files,
imagesOnly: imagesOnly,
peerId: peerId,
files: files,
imagesOnly: imagesOnly,
totalSize: totalSize
});
});
if (!this.isShown()) {
await this._nextFiles();
await this._nextFiles();
}
} catch (error) {
window.pairdrop.toast.show(error.message);