remove direct call to Conf structure
This commit is contained in:
parent
b010c4c43e
commit
3384a8c1f7
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue