Skip to content

Commit

Permalink
sandbox background scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed Feb 1, 2019
1 parent a626020 commit f39c195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/browser/chrome-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ const startBackgroundPages = function (manifest) {
const contents = webContents.create({
partition: 'persist:__chrome_extension',
isBackgroundPage: true,
commandLineSwitches: ['--background-page']
commandLineSwitches: ['--background-page'],
enableRemoteModule: false,
sandbox: true
})
backgroundPages[manifest.extensionId] = { html: html, webContents: contents, name: name }
contents.loadURL(url.format({
Expand Down

0 comments on commit f39c195

Please sign in to comment.