Update ui.js
This commit is contained in:
parent
c58a2da5d3
commit
8015155f6d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue