fix
This commit is contained in:
parent
ed14570546
commit
303ac1cfc3
1 changed files with 6 additions and 1 deletions
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
let config = window.BACKEND_URL || "http://localhost:8080/";
|
let config;
|
||||||
|
if (window.BACKEND_URL !== "__BACKEND_URL__") {
|
||||||
|
config = window.BACKEND_URL + "/";
|
||||||
|
} else {
|
||||||
|
config = "http://localhost:8080/";
|
||||||
|
}
|
||||||
var tkn = localStorage.getItem("token");
|
var tkn = localStorage.getItem("token");
|
||||||
|
|
||||||
/** the ServiceSocket instance valid for the current session */
|
/** the ServiceSocket instance valid for the current session */
|
||||||
|
|
Loading…
Reference in a new issue