fix: Make sure to fetch window icons
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
This commit is contained in:
parent
7f8f0646a5
commit
c1e9437835
|
|
@ -193,7 +193,7 @@ export function createMainWindow() {
|
|||
session.defaultSession.setDisplayMediaRequestHandler(
|
||||
(request, callback) => {
|
||||
desktopCapturer
|
||||
.getSources({ types: ["screen", "window"] })
|
||||
.getSources({ types: ["screen", "window"], fetchWindowIcons: true })
|
||||
.then((sources) => {
|
||||
// Shortcut for linux wayland.
|
||||
if (sources.length == 1) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue