fix redirect.html

This commit is contained in:
James Feng Cao 2024-03-23 11:38:38 +08:00
parent c0a6690dd8
commit af87a9130d
1 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,12 @@
<head>
<script type="text/javascript">
(function(){
var ls = navigator.languages;
for(var i in ls){
if(ls[i].startsWith("en")) {location.href="en/index.html";break;}
if(ls[i].startsWith("zh")) {location.href="zh/index.html";break;}
if(ls[i].startsWith("en")) {location.href="en/index.html";return;}
if(ls[i].startsWith("zh")) {location.href="zh/index.html";return;}
}
location.href="en/index.html";
})();
</script>
</head>