ElectronPlatform.tsx aktualisieren
Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
parent
b64ac0593e
commit
1cf08423ad
1 changed files with 1 additions and 7 deletions
|
@ -170,13 +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]) => {
|
||||||
if (!source)
|
this.ipc.call("callDisplayMediaCallback", source ?? { id: "", name: "", thumbnailURL: "" });
|
||||||
source = {
|
|
||||||
id: "",
|
|
||||||
name: "",
|
|
||||||
thumbnailURL: ""
|
|
||||||
};
|
|
||||||
this.ipc.call("callDisplayMediaCallback", source);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue