fix redirect.html

This commit is contained in:
James Feng Cao 2024-03-23 11:38:38 +08:00
parent c0a6690dd8
commit af87a9130d

View file

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