aboutsummaryrefslogtreecommitdiff
path: root/webAO/utils/queryParser.ts
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2023-11-18 19:58:15 +0100
committerDavid Skoland <davidskoland@gmail.com>2023-11-20 21:10:04 +0100
commiteae8a41221a35bb435095f9c4d7419dddb87eee0 (patch)
treec5c98aaafd05b6dd5db061ff68a2ad63af341f0e /webAO/utils/queryParser.ts
parentdc3c9cc7bc2725552661ea27158720305d74cdd1 (diff)
Change ip to connect and include protocol
Diffstat (limited to 'webAO/utils/queryParser.ts')
-rw-r--r--webAO/utils/queryParser.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/webAO/utils/queryParser.ts b/webAO/utils/queryParser.ts
index f934ac6..a8b82d9 100644
--- a/webAO/utils/queryParser.ts
+++ b/webAO/utils/queryParser.ts
@@ -2,6 +2,7 @@
interface QueryParams {
ip: string;
+ connect: string;
mode: string;
asset: string;
theme: string;
@@ -12,10 +13,11 @@ const queryParser = (): QueryParams => {
const urlParams = new URLSearchParams(window.location.search);
const queryParams = {
ip: urlParams.get("ip") || "",
+ connect: urlParams.get("connect") || "",
mode: urlParams.get("mode") || "join",
asset: urlParams.get("asset") || "http://attorneyoffline.de/base/",
theme: urlParams.get("theme") || "default",
- serverName: urlParams.get("serverName") || "Attorney Online session"
+ serverName: urlParams.get("serverName") || "Attorney Online session",
}
return queryParams as QueryParams;
};