mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 14:12:48 -05:00
Persist cookies in views and browse window
This commit is contained in:
@@ -75,7 +75,9 @@ export default class StreamWindow extends EventEmitter {
|
||||
|
||||
const views = []
|
||||
for (let idx = 0; idx <= 9; idx++) {
|
||||
const view = new BrowserView()
|
||||
const view = new BrowserView({
|
||||
webPreferences: { partition: 'persist:session' },
|
||||
})
|
||||
view.setBackgroundColor('#000')
|
||||
|
||||
const machine = viewStateMachine
|
||||
|
||||
@@ -66,7 +66,9 @@ async function main() {
|
||||
streamWindow.reloadView(msg.viewIdx)
|
||||
} else if (msg.type === 'browse') {
|
||||
if (!browseWindow || browseWindow.isDestroyed()) {
|
||||
browseWindow = new BrowserWindow()
|
||||
browseWindow = new BrowserWindow({
|
||||
webPreferences: { partition: 'persist:session' },
|
||||
})
|
||||
}
|
||||
browseWindow.loadURL(msg.url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user