修正判断https
This commit is contained in:
@ -299,7 +299,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
//是https或者是本地
|
//是https或者是本地
|
||||||
const httpsOrLocal = () => {
|
const httpsOrLocal = () => {
|
||||||
let protocol = document.location.protocol;
|
let protocol = document.location.protocol;
|
||||||
if (protocol == 'https') {
|
if (protocol == 'https:') {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
let host = window.location.hostname;
|
let host = window.location.hostname;
|
||||||
|
Reference in New Issue
Block a user