aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/aoHost.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2026-02-11 12:28:49 +0100
committerGitHub <noreply@github.com>2026-02-11 12:28:49 +0100
commit8e7af5b93009c987a4c0c3fef014cf7b64463e03 (patch)
tree04b0c383ca35962dc3054ec7ace34bb64f019622 /webAO/client/aoHost.ts
parent726d89ce8605d27be1c14bba59f81cfd6254ccb3 (diff)
parent5bb35a981e2f35df7fbf126faa8655ee3b3ca142 (diff)
Merge pull request #293 from OmniTroid/better-charloading
Better charloading
Diffstat (limited to 'webAO/client/aoHost.ts')
-rw-r--r--webAO/client/aoHost.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/client/aoHost.ts b/webAO/client/aoHost.ts
index 003e237..0d7cb0f 100644
--- a/webAO/client/aoHost.ts
+++ b/webAO/client/aoHost.ts
@@ -2,7 +2,7 @@ import queryParser from "../utils/queryParser";
const { asset } = queryParser();
export let AO_HOST = asset;
-export const setAOhost = (val: string) => {
+export const setAOhost = (val: string): string => {
const currentProtocol = window.location.protocol;
const assetProtocol = val.split(":")[0] + ":";
@@ -19,4 +19,5 @@ export const setAOhost = (val: string) => {
AO_HOST = val;
}
console.log("Asset URL ist now " + AO_HOST);
+ return AO_HOST;
};