Skip to content

Commit

Permalink
force https
Browse files Browse the repository at this point in the history
  • Loading branch information
iqiancheng committed Jul 17, 2015
1 parent 1b1ece4 commit 83ffc9b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@
navigationTooltips: ['挑战雄狮', '认识自己', '聚集勇气', '唤醒睡狮']
});
});

//Force Https
(function forceHttps(){
var ishttps = 'https:' == document.location.protocol ? true: false;
if(ishttps == false){
location.href = location.href.replace("http://", "https://");
}
})();

</script>

</head>
Expand Down Expand Up @@ -112,4 +121,4 @@ <h1>唤醒睡狮</h1>
</div>

</body>
</html>
</html>

0 comments on commit 83ffc9b

Please sign in to comment.