From 69860f786efb1374b284d987818b61c4bfd54649 Mon Sep 17 00:00:00 2001 From: Janis Date: Thu, 27 Oct 2022 20:43:30 +0200 Subject: [PATCH] remoteAppPort now changable in config --- config.js | 1 + js/app.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index 57c0c1e..bb8baed 100644 --- a/config.js +++ b/config.js @@ -1,5 +1,6 @@ const CONFIG = { apiKey: "9811add4-5ee3-436d-ae9d-d98ff53a1f12", + remoteAppPort: 5899, style: { fontBackground: "rgba(19, 20, 33, 0.5)", fontColor: "#ffffff", diff --git a/js/app.js b/js/app.js index f485a82..787fad9 100644 --- a/js/app.js +++ b/js/app.js @@ -1,5 +1,5 @@ function main() { - const ws = new WebSocket("ws://localhost:5899"); + const ws = new WebSocket(`ws://localhost:${CONFIG.remoteAppPort}`); const paylaod = { type: "auth", payload: {