From 3384a8c1f7af9998bbf69f7c8bb44370bcafe05a Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 20 Apr 2021 08:43:27 +0200 Subject: [PATCH] remove direct call to Conf structure --- public/trivabble.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/trivabble.js b/public/trivabble.js index a3d38c9..2057c09 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1383,7 +1383,7 @@ webSocket = new WebSocket( (window.location.protocol === "http:" ? "ws://" : "wss://") + window.location.host + - Conf.API_ENTRY_POINT + "/ws/" + + getSetting("API_ENTRY_POINT") + "/ws/" + JSON.stringify(cmdsWithContext()) ); @@ -1397,7 +1397,7 @@ function xhrRequest(data, onreadystatechange) { const xhr = new XMLHttpRequest(); - xhr.open("POST", Conf.API_ENTRY_POINT, true); + xhr.open("POST", getSetting("API_ENTRY_POINT"), true); xhr.setRequestHeader("Content-Type", "text/plain"); xhr.send(JSON.stringify(data)); -- 2.30.2