mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -86,6 +86,7 @@ const startBackgroundPages = function (manifest) {
|
||||
}
|
||||
|
||||
const contents = webContents.create({
|
||||
partition: 'persist:__chrome_extension',
|
||||
isBackgroundPage: true,
|
||||
commandLineSwitches: ['--background-page']
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user