mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 01:27:42 +01:00
Fix incorrect usingProxyHttps check
This commit is contained in:
parent
d6e90d3c01
commit
ced66a1590
@ -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'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user