Electron 549: fix main window show javascript error issues (#397)

- support not quitting app on mac upon closing window
- add extra checks for showing main window
This commit is contained in:
Vishwas Shashidhar 2018-06-12 15:17:02 +05:30 committed by GitHub
parent 89f6bee08a
commit a52c46bb6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,7 +679,9 @@ function getWindowSizeAndPosition(window) {
* Shows the main window
*/
function showMainWindow() {
mainWindow.show();
if (mainWindow) {
mainWindow.show();
}
}
/**