mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Sandbox stream views
This commit is contained in:
@@ -76,7 +76,7 @@ export default class StreamWindow extends EventEmitter {
|
||||
const views = []
|
||||
for (let idx = 0; idx <= 9; idx++) {
|
||||
const view = new BrowserView({
|
||||
webPreferences: { partition: 'persist:session' },
|
||||
webPreferences: { partition: 'persist:session', sandbox: true },
|
||||
})
|
||||
view.setBackgroundColor('#000')
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ async function main() {
|
||||
} else if (msg.type === 'browse') {
|
||||
if (!browseWindow || browseWindow.isDestroyed()) {
|
||||
browseWindow = new BrowserWindow({
|
||||
webPreferences: { partition: 'persist:session' },
|
||||
webPreferences: { partition: 'persist:session', sandbox: true },
|
||||
})
|
||||
}
|
||||
browseWindow.loadURL(msg.url)
|
||||
|
||||
Reference in New Issue
Block a user