From 376b65c749430ce4241b10dd3fdd72cca19cae7a Mon Sep 17 00:00:00 2001 From: rejas Date: Sun, 18 Apr 2021 14:49:54 +0200 Subject: [PATCH] Use es6 notation in serveronly --- serveronly/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serveronly/index.js b/serveronly/index.js index 136eaa00..00d6b64b 100644 --- a/serveronly/index.js +++ b/serveronly/index.js @@ -1,8 +1,8 @@ const app = require("../js/app.js"); const Log = require("logger"); -app.start(function (config) { - var bindAddress = config.address ? config.address : "localhost"; - var httpType = config.useHttps ? "https" : "http"; +app.start((config) => { + const bindAddress = config.address ? config.address : "localhost"; + const httpType = config.useHttps ? "https" : "http"; Log.log("\nReady to go! Please point your browser to: " + httpType + "://" + bindAddress + ":" + config.port); });