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