Use idiomatic ES6 when merging options

This commit is contained in:
Charles Kerr 2018-03-13 16:23:39 +09:00
parent 379bd79de4
commit 2d90e763ad

View file

@ -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}
}
}