Skip to content

Commit

Permalink
fix: inheritance of webPreferences sub properties
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and ckerr committed Aug 22, 2018
1 parent 4c7af6a commit ef0a6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/browser/guest-window-manager.js
Expand Up @@ -27,11 +27,11 @@ const mergeOptions = function (child, parent, visited) {
for (const key in parent) {
if (key === 'isBrowserView') continue
if (!hasProp.call(parent, key)) continue
if (key in child) continue
if (key in child && key !== 'webPreferences') continue

const value = parent[key]
if (typeof value === 'object') {
child[key] = mergeOptions({}, value, visited)
child[key] = mergeOptions(child[key] || {}, value, visited)
} else {
child[key] = value
}
Expand Down

0 comments on commit ef0a6d9

Please sign in to comment.