mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
Use idiomatic ES6 when merging options
This commit is contained in:
@@ -54,7 +54,7 @@ const mergeBrowserWindowOptions = function (embedder, options) {
|
||||
if (win != null) {
|
||||
const show = win.isVisible()
|
||||
if (typeof show === 'boolean') {
|
||||
parentOptions = {...embedder.browserWindowOptions, show: show}
|
||||
parentOptions = {...embedder.browserWindowOptions, show}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user