Add background page web contents type
This commit is contained in:
parent
ee0bab6389
commit
f29801ad2b
3 changed files with 19 additions and 5 deletions
|
@ -73,6 +73,7 @@ const startBackgroundPages = function (manifest) {
|
|||
const html = new Buffer(`<html><body>${scripts}</body></html>`)
|
||||
|
||||
const contents = webContents.create({
|
||||
type: 'backgroundPage',
|
||||
commandLineSwitches: ['--background-page']
|
||||
})
|
||||
backgroundPages[manifest.extensionId] = { html: html, webContents: contents }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue