Fix incorrect usingProxyHttps check
This commit is contained in:
parent
d6e90d3c01
commit
ced66a1590
|
@ -7,7 +7,7 @@ const javaReplaced = {
|
||||||
|
|
||||||
const isCurrentAddress = (address) => {
|
const isCurrentAddress = (address) => {
|
||||||
let is = window.location.href.startsWith(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) {
|
if (usingProxyHttps) {
|
||||||
is = window.location.href.replace('https', '').startsWith(address.replace('http'));
|
is = window.location.href.replace('https', '').startsWith(address.replace('http'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue