This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* xeslint-disable */
|
||||
/* Xeslint-disable */
|
||||
import logger from "../utils/logit";
|
||||
import store from "../store";
|
||||
|
||||
@@ -56,20 +56,20 @@ export default {
|
||||
//construct the api url and store it
|
||||
//development location?
|
||||
if (
|
||||
window.location.host == "localhost" &&
|
||||
window.location.hostname == "localhost" &&
|
||||
window.location.port == "8080"
|
||||
) {
|
||||
logger.log("apiutil::APIUrl -> APIURL empty setting to dev. mode");
|
||||
store.commit("setAPIURL", "http://localhost:7575/api/v8.0/");
|
||||
} else {
|
||||
//production location <protocol>//<hostname>:<port>/
|
||||
store.commit(
|
||||
"setAPIURL",
|
||||
window.location.protocol +
|
||||
"//" +
|
||||
window.location.hostname +
|
||||
":" +
|
||||
window.location.port +
|
||||
"/api/v8.0/"
|
||||
window.location.protocol + "//" + window.location.host + "/api/v8.0/"
|
||||
);
|
||||
logger.log(
|
||||
"apiutil::APIUrl -> APIURL empty using: ",
|
||||
store.state.apiUrl
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user