feat: add webPreferences.enableRemoteModule option (#13028)
This commit is contained in:
parent
72db5ed7cb
commit
d3efc52745
36 changed files with 303 additions and 45 deletions
8
spec/fixtures/module/preload-disable-remote.js
vendored
Normal file
8
spec/fixtures/module/preload-disable-remote.js
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
setImmediate(function () {
|
||||
try {
|
||||
const { remote } = require('electron')
|
||||
console.log(JSON.stringify(typeof remote))
|
||||
} catch (e) {
|
||||
console.log(e.message)
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue