Run background pages in separate partition
This avoids the default partition always being created on startup, so it gives users a chance to run session.fromParititon.
This commit is contained in:
parent
749ed3473b
commit
41d2799514
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ const startBackgroundPages = function (manifest) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const contents = webContents.create({
|
const contents = webContents.create({
|
||||||
|
partition: 'persist:__chrome_extension',
|
||||||
isBackgroundPage: true,
|
isBackgroundPage: true,
|
||||||
commandLineSwitches: ['--background-page']
|
commandLineSwitches: ['--background-page']
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue