mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2026-09-15 12:11:11 +08:00
修复部分页面重定向可能失效的问题 (#285)
This commit is contained in:
@@ -23,12 +23,13 @@ Can't download? [Click here to download (alternative)](https://alist.8mi.tech/d/
|
||||
|
||||
|
||||
<script>
|
||||
/* 等待 5 秒. */
|
||||
setTimeout(function() {
|
||||
const isZhCN = /^zh-CN/i.test(navigator.language);
|
||||
const url = isZhCN
|
||||
? "https://alist.8mi.tech/d/mirror/ms-jdk/Auto/microsoft-jdk-21-windows-x64.msi"
|
||||
: "https://aka.ms/download-jdk/microsoft-jdk-21-windows-x64.msi";
|
||||
window.location.href = url;
|
||||
}, 5000); // Wait 5 seconds
|
||||
}, 5000);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user