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