mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 14:12:48 -05:00
Force BrowserView visibility to start visible
This fixes Twitch videos not loading on the offscreen window.
This commit is contained in:
@@ -152,6 +152,10 @@ export default class StreamWindow extends EventEmitter {
|
|||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
worldSafeExecuteJavaScript: true,
|
worldSafeExecuteJavaScript: true,
|
||||||
partition: 'persist:session',
|
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)
|
view.setBackgroundColor(backgroundColor)
|
||||||
|
|||||||
Reference in New Issue
Block a user