From 26d4521eeeaa99c60dafd92e5a7b38a6def20b92 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Mon, 20 Jan 2025 20:33:29 +0100 Subject: allow url to override ass --- webAO/client/aoHost.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webAO/client/aoHost.ts b/webAO/client/aoHost.ts index 906d4a6..4501104 100644 --- a/webAO/client/aoHost.ts +++ b/webAO/client/aoHost.ts @@ -11,6 +11,7 @@ export const setAOhost = (val: string) => { console.log("Upgrading asset link to https"); val = val.replace("http:", "https:"); } - - AO_HOST = val; + if (AO_HOST.length < 5) { + AO_HOST = val; + } }; -- cgit