mirror of https://github.com/vector-im/riot-web
Fix share cancel button in element-desktop
parent
364ad021e4
commit
2f72796ae7
|
@ -170,7 +170,12 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
||||||
window.electron.on("openDesktopCapturerSourcePicker", () => {
|
window.electron.on("openDesktopCapturerSourcePicker", () => {
|
||||||
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
|
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
|
||||||
finished.then(([source]) => {
|
finished.then(([source]) => {
|
||||||
if (!source) return;
|
if (!source)
|
||||||
|
source = {
|
||||||
|
id: "",
|
||||||
|
name: "",
|
||||||
|
thumbnailURL: ""
|
||||||
|
};
|
||||||
this.ipc.call("callDisplayMediaCallback", source);
|
this.ipc.call("callDisplayMediaCallback", source);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue