This commit is contained in:
Claudio Maggioni 2020-03-25 14:13:59 +01:00
parent ed14570546
commit 303ac1cfc3

View file

@ -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 */