From 976fcd4993c63f3111b536bccdf6d923a4494b4c Mon Sep 17 00:00:00 2001 From: Quido Hoekman Date: Sun, 31 Jul 2016 20:07:16 +0200 Subject: [PATCH] Added env (IGNORE_OPEN) before openBrowser, so that it wouldnt open a browser in case of developement with Electron. --- scripts/start.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/start.js b/scripts/start.js index c93754df3b0..05950f1c6b6 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -167,7 +167,9 @@ function runDevServer(port) { clearConsole(); console.log(chalk.cyan('Starting the development server...')); console.log(); - openBrowser(port); + if(Boolean(process.env.IGNORE_OPEN)) + openBrowser(port); + } }); }