This commit is contained in:
Rizky 2024-07-04 14:19:51 +07:00
parent 188f1905f8
commit 8c74c2deaa
2 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -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}`;
}; };