remove direct call to Conf structure

This commit is contained in:
Laurent Mazet 2021-04-20 08:43:27 +02:00
parent b010c4c43e
commit 3384a8c1f7
1 changed files with 2 additions and 2 deletions

View File

@ -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));