Skip to content

Commit 44f20ab

Browse files
MarshallOfSoundckerr
authored andcommitted
fix: inheritance of webPreferences sub properties
1 parent 3452f88 commit 44f20ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/browser/guest-window-manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const mergeOptions = function (child, parent, visited) {
2727
for (const key in parent) {
2828
if (key === 'isBrowserView') continue
2929
if (!hasProp.call(parent, key)) continue
30-
if (key in child) continue
30+
if (key in child && key !== 'webPreferences') continue
3131

3232
const value = parent[key]
3333
if (typeof value === 'object') {
34-
child[key] = mergeOptions({}, value, visited)
34+
child[key] = mergeOptions(child[key] || {}, value, visited)
3535
} else {
3636
child[key] = value
3737
}

0 commit comments

Comments
 (0)