Add background page web contents type

This commit is contained in:
Kevin Sawicki 2016-06-14 09:27:36 -07:00
parent ee0bab6389
commit f29801ad2b
3 changed files with 19 additions and 5 deletions

View file

@ -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 }