Skip to content

Commit

Permalink
possible fix for #170
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmerAL committed May 22, 2016
1 parent 5c29c2a commit 267e90a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ app.on("open-url", function (e, url) {
*
* Opens a new tab when all tabs are closed, and min is still open by clicking on the application dock icon
*/
app.on("activate", function functionName( /*e, hasVisibleWindows*/ ) {
if (!mainWindow) {
app.on("activate", function ( /*e, hasVisibleWindows*/ ) {
if (!mainWindow && appIsReady) { //sometimes, the event will be triggered before the app is ready, and creating new windows will fail
createWindow();
}
});
Expand Down

0 comments on commit 267e90a

Please sign in to comment.