aboutsummaryrefslogtreecommitdiff
path: root/webAO/master.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/master.ts')
-rw-r--r--webAO/master.ts2
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];