Fix incorrect usingProxyHttps check

This commit is contained in:
Aurora Lahtela 2023-09-24 09:59:07 +03:00
parent d6e90d3c01
commit ced66a1590

View File

@ -7,7 +7,7 @@ const javaReplaced = {
const isCurrentAddress = (address) => {
let is = window.location.href.startsWith(address);
const usingProxyHttps = window.location.href.startsWith("https") && address.startsWith("http");
const usingProxyHttps = window.location.href.startsWith("https") && !address.startsWith("https");
if (usingProxyHttps) {
is = window.location.href.replace('https', '').startsWith(address.replace('http'));
}