From 1ef614b5738eb10ed8f5fe75f69af44d9ae5c955 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 19 Mar 2020 14:41:00 +0100 Subject: [PATCH] Specify the protocol for the proxy url (else the TeaClient would not work) --- shared/js/MessageFormatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/MessageFormatter.ts b/shared/js/MessageFormatter.ts index e5108011..66bb2d7f 100644 --- a/shared/js/MessageFormatter.ts +++ b/shared/js/MessageFormatter.ts @@ -133,7 +133,7 @@ namespace messages.formatter { export function load_image(entry: HTMLImageElement) { const url = decodeURIComponent(entry.getAttribute("x-image-url") || ""); - const proxy_url = "//images.weserv.nl/?url=" + encodeURIComponent(url); + const proxy_url = "https://images.weserv.nl/?url=" + encodeURIComponent(url); entry.onload = undefined; entry.src = proxy_url;