From 64ca5ccad6c93e0c8ac5f892d8a1de46b5fa4ca1 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Tue, 29 Mar 2022 19:25:43 +0200 Subject: delete index.html in masterlist --- webAO/master.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webAO') 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]; -- cgit