diff --git a/lib/browser/guest-window-manager.js b/lib/browser/guest-window-manager.js index 4c4dc90d0741..0e4ae309282f 100644 --- a/lib/browser/guest-window-manager.js +++ b/lib/browser/guest-window-manager.js @@ -47,14 +47,14 @@ const mergeBrowserWindowOptions = function (embedder, options) { options.webPreferences = {} } if (embedder.browserWindowOptions != null) { - let parentOptions = {...embedder.browserWindowOptions} + let parentOptions = embedder.browserWindowOptions // if parent's visibility is available, that overrides 'show' flag (#12125) const win = BrowserWindow.fromWebContents(embedder.webContents) if (win != null) { const show = win.isVisible() if (typeof show === 'boolean') { - parentOptions.show = show + parentOptions = {...embedder.browserWindowOptions, show: show} } }