Skip to content

Commit

Permalink
Disable remote module by default in --renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Dec 4, 2020
1 parent 4545524 commit f809f0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ require-main:
- test/support/requireMain
require:
- test/support/require
window-config-file: test/support/window.config.json
2 changes: 1 addition & 1 deletion lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ exports.handler = async argv => {
focusable: argv.renderer || argv.inspect,
...customWindowOptions,
webPreferences: {
enableRemoteModule: true,
enableRemoteModule: false,
contextIsolation: false,
nodeIntegration: true,
...customWindowOptions.webPreferences,
Expand Down
5 changes: 5 additions & 0 deletions test/support/window.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"webPreferences": {
"enableRemoteModule": true
}
}

0 comments on commit f809f0a

Please sign in to comment.