Update webServer.js

This commit is contained in:
Luis Fernando Molina committed 2020-09-10 22:43:49 +02:00
1 parent fb0436f516
commit b06de5d54b
1 file changed
+3 -3
+3 -3
View File
@@ -44,10 +44,10 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
gWebServer = http.createServer(onBrowserRequest).listen(port)
isHttpServerStarted = true
/* Starting the browser now is optional */
if (process.argv[4] !== 'noBrowser') {
open('http://localhost:' + port)
} else {
if (process.argv.includes("noBrowser")) {
console.log('Running Backend only with no UI.')
} else {
open('http://localhost:' + port)
}
console.log('Web Server Started.')