Work around a compiler bug that crashes on Windows

This commit is contained in:
Cheng Zhao 2016-06-16 10:54:28 +09:00
parent 9267004b53
commit bb10551d23
3 changed files with 13 additions and 4 deletions

View file

@ -78,7 +78,7 @@ const startBackgroundPages = function (manifest) {
const html = new Buffer(`<html><body>${scripts}</body></html>`)
const contents = webContents.create({
type: 'backgroundPage',
isBackgroundPage: true,
commandLineSwitches: ['--background-page']
})
backgroundPages[manifest.extensionId] = { html: html, webContents: contents }