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:
Cheng Zhao 2016-07-13 16:22:55 +09:00
parent 749ed3473b
commit 41d2799514

View file

@ -86,6 +86,7 @@ const startBackgroundPages = function (manifest) {
}
const contents = webContents.create({
partition: 'persist:__chrome_extension',
isBackgroundPage: true,
commandLineSwitches: ['--background-page']
})