fix NanoKVM home url

This commit is contained in:
wj-xiao
2024-08-13 18:17:35 +08:00
parent 201cf8d4f6
commit fc40416a75

View File

@@ -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>