fix: make child windows not crash when ipc messages are received (#19553)
This commit is contained in:
parent
cfd230d7f1
commit
33a9d898a6
6 changed files with 39 additions and 12 deletions
|
@ -34,7 +34,7 @@ const mergeOptions = function (child, parent, visited) {
|
|||
if (key in child && key !== 'webPreferences') continue
|
||||
|
||||
const value = parent[key]
|
||||
if (typeof value === 'object') {
|
||||
if (typeof value === 'object' && !Array.isArray(value)) {
|
||||
child[key] = mergeOptions(child[key] || {}, value, visited)
|
||||
} else {
|
||||
child[key] = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue