Merge pull request #1241 from FrenchBen/enable-debug

Add package option for devTools window on start
This commit is contained in:
French Ben 2015-11-30 12:51:20 -08:00
commit 321fedb069
2 changed files with 5 additions and 0 deletions

View File

@ -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",

View File

@ -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 () {