Fixing mainWindow undefined error

This commit is contained in:
Jeff Morgan 2014-09-09 17:03:02 -07:00
parent e398e44245
commit c1907be3d2
3 changed files with 5 additions and 3 deletions

View File

@ -96,8 +96,12 @@ var start = function (callback) {
}
};
mainWindow = null;
app.on('activate-with-no-open-windows', function () {
mainWindow.show();
if (!mainWindow) {
mainWindow.show();
}
return false;
});

View File

@ -3,7 +3,6 @@ set -e # Auto exit on error
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/colors.sh
source $DIR/versions.sh
BASE=$DIR/..
NPM="$BASE/cache/node/bin/npm"

View File

@ -3,7 +3,6 @@ set -e # Auto exit on error
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/colors.sh
source $DIR/versions.sh
BASE=$DIR/..
pushd $BASE