chore: remove awkward semi-documented preloadURL WebPreference (#33228)
This commit is contained in:
parent
e904486076
commit
4342b7ff55
11 changed files with 16 additions and 23 deletions
|
@ -562,7 +562,6 @@ app.on('web-contents-created', (event, contents) => {
|
|||
contents.on('will-attach-webview', (event, webPreferences, params) => {
|
||||
// Strip away preload scripts if unused or verify their location is legitimate
|
||||
delete webPreferences.preload
|
||||
delete webPreferences.preloadURL
|
||||
|
||||
// Disable Node.js integration
|
||||
webPreferences.nodeIntegration = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue