aboutsummaryrefslogtreecommitdiff
path: root/webAO/client
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2023-11-13 00:11:21 +0100
committerDavid Skoland <davidskoland@gmail.com>2023-11-13 00:11:21 +0100
commitab396c71295f76e62739c01bc8e6a29f1896ba8c (patch)
treea24ff12de80955903266a69820de7e99575dc0e0 /webAO/client
parent3b57ceff07be9fc86ee5ba73a0614ee754f8f8c6 (diff)
Use URLSearchParams and set default directly
Diffstat (limited to 'webAO/client')
-rw-r--r--webAO/client/aoHost.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/client/aoHost.ts b/webAO/client/aoHost.ts
index fa13e79..6cad62a 100644
--- a/webAO/client/aoHost.ts
+++ b/webAO/client/aoHost.ts
@@ -1,7 +1,7 @@
import queryParser from '../utils/queryParser'
+
const { asset } = queryParser();
-const DEFAULT_HOST = 'http://attorneyoffline.de/base/';
-export let AO_HOST = asset || DEFAULT_HOST
+export let AO_HOST = asset;
export const setAOhost = (val: string) => {
- AO_HOST = val
+ AO_HOST = val;
}