This commit is contained in:
Rizky 2024-11-22 12:16:09 +07:00
parent ed8e7d9569
commit 3bbd8fec7a
4 changed files with 27 additions and 23 deletions

File diff suppressed because one or more lines are too long

View File

@ -84,6 +84,10 @@ const injectSiteScript = () => {
if (base_url === "*") {
base_url = `${location.protocol}//${location.host}`;
base.site.api_url = base_url;
} else {
const url = new URL(base_url);
url.search = "";
base_url = url.toString();
}
base_url = trim(base_url, "/");

Binary file not shown.

File diff suppressed because one or more lines are too long