修正判断https

This commit is contained in:
袁帅
2022-09-08 09:38:55 +08:00
parent bc922ae577
commit 47c996265a

View File

@ -299,7 +299,7 @@ const Index: React.FC<{}> = () => {
//是https或者是本地
const httpsOrLocal = () => {
let protocol = document.location.protocol;
if (protocol == 'https') {
if (protocol == 'https:') {
return true;
} else {
let host = window.location.hostname;