From 4cd9dd9c95978305915ef5da6178f582f1b42065 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Tue, 3 Jan 2017 19:09:55 +0100
Subject: [PATCH] [fix] Automatically inject 'webstart' command if no argument
 is given

---
 index.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/index.js b/index.js
index 25db0c6..562147a 100644
--- a/index.js
+++ b/index.js
@@ -22,6 +22,11 @@ module.exports = {
            * SPECIALISATION
            ***************************************/
 
+          // Inject 'webstart' command if no argument was given
+          if (process.argv.length === 2) {
+            process.argv.push('webstart');
+          }
+
           const app = express();
           const HOTE = 'localhost';
           const PORT = 9220;
-- 
GitLab