mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Avoid insecure nodeIntegration in example
This commit is contained in:
@@ -23,7 +23,11 @@ win.on('closed', () => {
|
||||
win = null
|
||||
})
|
||||
|
||||
let view = new BrowserView()
|
||||
let view = new BrowserView({
|
||||
webPreferences: {
|
||||
nodeIntegration: false
|
||||
}
|
||||
})
|
||||
win.addChildView(view)
|
||||
view.setBounds(0, 0, 300, 300)
|
||||
view.webContents.loadURL('https://electron.atom.io')
|
||||
|
||||
Reference in New Issue
Block a user