Specify the protocol for the proxy url (else the TeaClient would not work)

This commit is contained in:
WolverinDEV 2020-03-19 14:41:00 +01:00
parent b4fc739a13
commit 1ef614b573

View file

@ -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;