зеркало из https://github.com/docker/kitematic.git
Add package option for devTools window on start
Signed-off-by: French Ben <me+git@frenchben.com>
This commit is contained in:
Родитель
c1709f5288
Коммит
d39b8235b9
|
@ -12,6 +12,7 @@
|
|||
"bugs": "https://github.com/kitematic/kitematic/issues",
|
||||
"scripts": {
|
||||
"start": "grunt",
|
||||
"start-dev": "NODE_ENV=development grunt",
|
||||
"test": "jest -c jest-unit.json",
|
||||
"integration": "jest -c jest-integration.json",
|
||||
"release": "grunt release",
|
||||
|
|
|
@ -53,6 +53,10 @@ app.on('ready', function () {
|
|||
show: false
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
mainWindow.openDevTools({detach: true});
|
||||
}
|
||||
|
||||
mainWindow.loadUrl(path.normalize('file://' + path.join(__dirname, 'index.html')));
|
||||
|
||||
app.on('activate-with-no-open-windows', function () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче