mirror of https://github.com/docker/docs.git
Fixing mainWindow undefined error
This commit is contained in:
parent
e398e44245
commit
c1907be3d2
6
index.js
6
index.js
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue