Force BrowserView visibility to start visible

This fixes Twitch videos not loading on the offscreen window.
This commit is contained in:
Max Goodhart
2020-11-11 21:45:38 -08:00
parent 531bfa1756
commit 18bdae3b16

View File

@@ -152,6 +152,10 @@ export default class StreamWindow extends EventEmitter {
contextIsolation: true,
worldSafeExecuteJavaScript: true,
partition: 'persist:session',
// Force BrowserView visibility to start visible.
// This is important because some pages block on visibility / RAF to display the video.
// See: https://github.com/electron/electron/pull/21372
show: true,
},
})
view.setBackgroundColor(backgroundColor)