Fix share cancel button in element-desktop
This commit is contained in:
parent
364ad021e4
commit
2f72796ae7
1 changed files with 6 additions and 1 deletions
|
@ -170,7 +170,12 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||
window.electron.on("openDesktopCapturerSourcePicker", () => {
|
||||
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
|
||||
finished.then(([source]) => {
|
||||
if (!source) return;
|
||||
if (!source)
|
||||
source = {
|
||||
id: "",
|
||||
name: "",
|
||||
thumbnailURL: ""
|
||||
};
|
||||
this.ipc.call("callDisplayMediaCallback", source);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue