web-preferences -> webPreferences
This commit is contained in:
parent
f5cf6d4ddd
commit
e735aa7dee
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ const mergeBrowserWindowOptions = function (embedder, options) {
|
||||||
// Inherit the original options if it is a BrowserWindow.
|
// Inherit the original options if it is a BrowserWindow.
|
||||||
mergeOptions(options, embedder.browserWindowOptions)
|
mergeOptions(options, embedder.browserWindowOptions)
|
||||||
} else {
|
} else {
|
||||||
// Or only inherit web-preferences if it is a webview.
|
// Or only inherit webPreferences if it is a webview.
|
||||||
mergeOptions(options.webPreferences, embedder.getWebPreferences())
|
mergeOptions(options.webPreferences, embedder.getWebPreferences())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -854,7 +854,7 @@ describe('BrowserWindow module', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('"web-preferences" option', function () {
|
describe('"webPreferences" option', function () {
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
ipcMain.removeAllListeners('answer')
|
ipcMain.removeAllListeners('answer')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue