mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-09 22:55:12 +00:00
Added comment
This commit is contained in:
parent
1cf08423ad
commit
2cad731f23
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ 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]) => {
|
||||||
|
// getDisplayMedia promise does not return if no dummy is passed here as source
|
||||||
this.ipc.call("callDisplayMediaCallback", source ?? { id: "", name: "", thumbnailURL: "" });
|
this.ipc.call("callDisplayMediaCallback", source ?? { id: "", name: "", thumbnailURL: "" });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue