diff --git a/main.js b/main.js index 180a862..cd297d8 100644 --- a/main.js +++ b/main.js @@ -50,7 +50,7 @@ app.on('window-all-closed', function () { app.on('activate', function () { // On OS X it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open. - if (mainWindow === null) { + if (win === null) { createWindow() } })