From 099aa13edd71b099ce321aa8121faa5485f0cf50 Mon Sep 17 00:00:00 2001 From: Po-Ying Chen Date: Sat, 25 Jul 2015 21:18:04 +0800 Subject: [PATCH] automatic open dev tools --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index cbb5b80..7563251 100644 --- a/main.js +++ b/main.js @@ -43,6 +43,10 @@ app.on('ready', function() { mainWindow.maximize(); + if (process.env.DEBUG) { + mainWindow.openDevTools({ detach: true }); + } + // and load the index.html of the app. mainWindow.loadUrl('file://' + __dirname + '/index.html');