From: Laurent Mazet Date: Tue, 20 Apr 2021 06:43:27 +0000 (+0200) Subject: remove direct call to Conf structure X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=3384a8c1f7af9998bbf69f7c8bb44370bcafe05a;p=trivabble.git remove direct call to Conf structure --- 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));