From 6684f3fce6e90fd0574d7bab63b629554ab03ef6 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 20 Nov 2024 13:31:50 +0000 Subject: Prettified Code! --- webAO/utils/queryParser.ts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'webAO/utils/queryParser.ts') diff --git a/webAO/utils/queryParser.ts b/webAO/utils/queryParser.ts index 1a3cea6..5263f6e 100644 --- a/webAO/utils/queryParser.ts +++ b/webAO/utils/queryParser.ts @@ -1,25 +1,25 @@ /* eslint @typescript-eslint/no-explicit-any: "warn" */ interface QueryParams { - ip: string; - connect: string; - mode: string; - asset: string; - theme: string; - serverName: string; + ip: string; + connect: string; + mode: string; + asset: string; + theme: string; + serverName: string; } const queryParser = (): QueryParams => { - const protocol = window.location.protocol; - 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") || `${protocol}//attorneyoffline.de/base/`, - theme: urlParams.get("theme") || "default", - serverName: urlParams.get("serverName") || "Attorney Online session", - } - return queryParams as QueryParams; + const protocol = window.location.protocol; + 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") || `${protocol}//attorneyoffline.de/base/`, + theme: urlParams.get("theme") || "default", + serverName: urlParams.get("serverName") || "Attorney Online session", + }; + return queryParams as QueryParams; }; export default queryParser; -- cgit