Skip to content

Commit

Permalink
[feat]Update HTTP to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
renyuzhuo committed Jul 27, 2019
1 parent fc82e11 commit 96098df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion zzuhtzy/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ router.init();
function go(){
var url = location.href;
console.log(url);
if(!url.includes("https://renyuzhuo.cn")){
console.log("Not https");
location.href = "https://renyuzhuo.cn";
return;
}
if(url.includes("renyuzhuo.cn/#/issues")){
console.log("issues");
router.init(url);
Expand All @@ -160,10 +165,12 @@ function go(){
index();
return;
}
console.log("404");
if(url !== "https://renyuzhuo.cn" && url !== "https://renyuzhuo.cn/"){
console.log("404");
location.href = "https://renyuzhuo.cn";
}

console.log("return");
return;
}

Expand Down

0 comments on commit 96098df

Please sign in to comment.