修正判断https
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user