diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-29 19:25:43 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-29 19:25:43 +0200 |
| commit | 64ca5ccad6c93e0c8ac5f892d8a1de46b5fa4ca1 (patch) | |
| tree | 998101df7799b446523b40c67e2057be59318c0d /webAO/master.ts | |
| parent | b1591208dc9479b1abc04727072849258e7cc729 (diff) | |
delete index.html in masterlist
Diffstat (limited to 'webAO/master.ts')
| -rw-r--r-- | webAO/master.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/master.ts b/webAO/master.ts index 5c538d4..5a31024 100644 --- a/webAO/master.ts +++ b/webAO/master.ts @@ -132,7 +132,7 @@ function cachedServerlist(response: Response) { } function processServerlist(thelist: { name: string, description: string, ip: string, port: number, ws_port: number, assets: string, online: string }[]) { - const myURL: string = window.location.href.replace('https://','http://'); + const myURL: string = window.location.href.replace('https://','http://').replace('index.html',''); for (let i = 0; i < thelist.length - 1; i++) { const serverEntry: { name: string, description: string, ip: string, port: number, ws_port: number, assets: string, online: string } = thelist[i]; |
