From fa175d7b0136cd837942eb54db0c98c4314eaada Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Mon, 28 Mar 2022 21:30:35 +0200 Subject: list http links even when coming from a https page --- webAO/master.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webAO/master.ts b/webAO/master.ts index a48f4e9..ca129fd 100644 --- a/webAO/master.ts +++ b/webAO/master.ts @@ -132,6 +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://'); 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]; @@ -142,8 +143,8 @@ function processServerlist(thelist: { name: string, description: string, ip: str if (serverEntry.ws_port) { document.getElementById('masterlist').innerHTML += `
  • ${safeTags(serverEntry.name)}

    ` - + `Watch` - + `Join
  • `; + + `Watch` + + `Join`; } } } -- cgit