Skip to content

Commit ced66a1

Browse files
committed
Fix incorrect usingProxyHttps check
1 parent d6e90d3 commit ced66a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plan/react/dashboard/src/service/backendConfiguration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const javaReplaced = {
77

88
const isCurrentAddress = (address) => {
99
let is = window.location.href.startsWith(address);
10-
const usingProxyHttps = window.location.href.startsWith("https") && address.startsWith("http");
10+
const usingProxyHttps = window.location.href.startsWith("https") && !address.startsWith("https");
1111
if (usingProxyHttps) {
1212
is = window.location.href.replace('https', '').startsWith(address.replace('http'));
1313
}

0 commit comments

Comments
 (0)