Apply further ES6 bikeshedding
This commit is contained in:
parent
2d90e763ad
commit
e400585a0e
2 changed files with 3 additions and 6 deletions
|
@ -52,10 +52,7 @@ const mergeBrowserWindowOptions = function (embedder, options) {
|
|||
// 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 = {...embedder.browserWindowOptions, show}
|
||||
}
|
||||
parentOptions = {...embedder.browserWindowOptions, show: win.isVisible()}
|
||||
}
|
||||
|
||||
// Inherit the original options if it is a BrowserWindow.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue