mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 17:32: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 = []
|
const views = []
|
||||||
for (let idx = 0; idx <= 9; idx++) {
|
for (let idx = 0; idx <= 9; idx++) {
|
||||||
const view = new BrowserView()
|
const view = new BrowserView({
|
||||||
|
webPreferences: { partition: 'persist:session' },
|
||||||
|
})
|
||||||
view.setBackgroundColor('#000')
|
view.setBackgroundColor('#000')
|
||||||
|
|
||||||
const machine = viewStateMachine
|
const machine = viewStateMachine
|
||||||
|
|||||||
@@ -66,7 +66,9 @@ async function main() {
|
|||||||
streamWindow.reloadView(msg.viewIdx)
|
streamWindow.reloadView(msg.viewIdx)
|
||||||
} else if (msg.type === 'browse') {
|
} else if (msg.type === 'browse') {
|
||||||
if (!browseWindow || browseWindow.isDestroyed()) {
|
if (!browseWindow || browseWindow.isDestroyed()) {
|
||||||
browseWindow = new BrowserWindow()
|
browseWindow = new BrowserWindow({
|
||||||
|
webPreferences: { partition: 'persist:session' },
|
||||||
|
})
|
||||||
}
|
}
|
||||||
browseWindow.loadURL(msg.url)
|
browseWindow.loadURL(msg.url)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user