fix
This commit is contained in:
parent
188f1905f8
commit
8c74c2deaa
File diff suppressed because one or more lines are too long
|
|
@ -61,6 +61,12 @@ export const loadApiProxyDef = async (_url: string, with_types: boolean) => {
|
||||||
|
|
||||||
const baseUrl = (url: string) => {
|
const baseUrl = (url: string) => {
|
||||||
const base = new URL(url);
|
const base = new URL(url);
|
||||||
|
|
||||||
|
if (base.hostname !== "prasi.avolut.com") {
|
||||||
|
const cur = new URL(location.href);
|
||||||
|
base.hostname = cur.hostname;
|
||||||
|
}
|
||||||
|
|
||||||
return `${base.protocol}//${base.host}`;
|
return `${base.protocol}//${base.host}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue