mirror of https://github.com/docker/docs.git
Merge pull request #1241 from FrenchBen/enable-debug
Add package option for devTools window on start
This commit is contained in:
commit
321fedb069
|
|
@ -12,6 +12,7 @@
|
||||||
"bugs": "https://github.com/kitematic/kitematic/issues",
|
"bugs": "https://github.com/kitematic/kitematic/issues",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "grunt",
|
"start": "grunt",
|
||||||
|
"start-dev": "NODE_ENV=development grunt",
|
||||||
"test": "jest -c jest-unit.json",
|
"test": "jest -c jest-unit.json",
|
||||||
"integration": "jest -c jest-integration.json",
|
"integration": "jest -c jest-integration.json",
|
||||||
"release": "grunt release",
|
"release": "grunt release",
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,10 @@ app.on('ready', function () {
|
||||||
show: false
|
show: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV === 'development') {
|
||||||
|
mainWindow.openDevTools({detach: true});
|
||||||
|
}
|
||||||
|
|
||||||
mainWindow.loadUrl(path.normalize('file://' + path.join(__dirname, 'index.html')));
|
mainWindow.loadUrl(path.normalize('file://' + path.join(__dirname, 'index.html')));
|
||||||
|
|
||||||
app.on('activate-with-no-open-windows', function () {
|
app.on('activate-with-no-open-windows', function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue