fix bug, function needs to be invoked

This commit is contained in:
Feross Aboukhadijeh
2018-05-25 00:30:54 -07:00
committed by GitHub
parent 7251967ef5
commit 6bf38611e8

View File

@@ -151,7 +151,7 @@ function setBounds (bounds, maximize) {
main.win.unmaximize()
}
const willBeMaximized = typeof maximize === 'boolean' ? maximize : main.win.isMaximized
const willBeMaximized = typeof maximize === 'boolean' ? maximize : main.win.isMaximized()
// Assuming we're not maximized or maximizing, set the window size
if (!willBeMaximized) {
log(`setBounds: setting bounds to ${JSON.stringify(bounds)}`)