Skip to content

Commit

Permalink
fix NanoKVM home url
Browse files Browse the repository at this point in the history
  • Loading branch information
wj-xiao committed Aug 13, 2024
1 parent 201cf8d commit fc40416
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pages/index/zh/nanokvm.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
var hash = window.location.hash
var url_language = "zh"

if( navigator.language.indexOf("zh") == -1 )
{
if (navigator.language.indexOf("zh") == -1) {
url_language = "en"
}

switch (window.location.hash) {
case "#shell" :
default :
location.href = window.location.origin + "/hardware/" + url_language + "/kvm/NanoKVM/1_intro.html"
case "#shell":
default:
location.href = window.location.origin + "/hardware/" + url_language + "/kvm/NanoKVM/introduction.html"
}
</script>
</script>

0 comments on commit fc40416

Please sign in to comment.