more fixing
This commit is contained in:
parent
f1cacc5720
commit
c2e3722c3a
1 changed files with 2 additions and 9 deletions
|
@ -31,11 +31,9 @@ export function registerScreenShareHandler() {
|
||||||
height: 99
|
height: 99
|
||||||
}
|
}
|
||||||
}).catch(() => null);
|
}).catch(() => null);
|
||||||
|
|
||||||
if (sources === null) return callback({});
|
if (sources === null) return callback({});
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 2e5c450b14553561ad6ca505152d2a93766ca138
|
|
||||||
const isWayland =
|
const isWayland =
|
||||||
process.platform === "linux" &&
|
process.platform === "linux" &&
|
||||||
(process.env.XDG_SESSION_TYPE === "wayland" || !!process.env.WAYLAND_DISPLAY);
|
(process.env.XDG_SESSION_TYPE === "wayland" || !!process.env.WAYLAND_DISPLAY);
|
||||||
|
@ -48,17 +46,12 @@ export function registerScreenShareHandler() {
|
||||||
|
|
||||||
if (isWayland) {
|
if (isWayland) {
|
||||||
const video = data[0];
|
const video = data[0];
|
||||||
<<<<<<< HEAD
|
|
||||||
getAudioFromVirtmic();
|
|
||||||
callback(video ? { video } : {});
|
|
||||||
=======
|
|
||||||
if (video)
|
if (video)
|
||||||
await request.frame.executeJavaScript(
|
await request.frame.executeJavaScript(
|
||||||
`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([video])}, true)`
|
`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([video])}, true)`
|
||||||
);
|
);
|
||||||
|
|
||||||
callback(video ? { video: sources[0] } : {});
|
callback(video ? { video: sources[0] } : {});
|
||||||
>>>>>>> 2e5c450b14553561ad6ca505152d2a93766ca138
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue