mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
web-preferences -> webPreferences
This commit is contained in:
@@ -47,7 +47,7 @@ const mergeBrowserWindowOptions = function (embedder, options) {
|
||||
// Inherit the original options if it is a BrowserWindow.
|
||||
mergeOptions(options, embedder.browserWindowOptions)
|
||||
} 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())
|
||||
}
|
||||
|
||||
|
||||
@@ -854,7 +854,7 @@ describe('BrowserWindow module', function () {
|
||||
})
|
||||
})
|
||||
|
||||
describe('"web-preferences" option', function () {
|
||||
describe('"webPreferences" option', function () {
|
||||
afterEach(function () {
|
||||
ipcMain.removeAllListeners('answer')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user