Skip to content

Commit

Permalink
download instead of preview
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbull committed Apr 23, 2024
1 parent 8425808 commit 4c965bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<p>正在跳转,请稍后……</p>
<p>若长时间未自动跳转可通过下方链接自行查看:</p>
<ul>
<li><a id="pdf_btn">PDF 版本</a>(大陆用户请使用该版本)</li>
<li><a id="pdf_btn" donwload>PDF 版本</a>(大陆用户请使用该版本)</li>
<li><a id="lark_btn">Lark 网页版</a></li>
</ul>

Expand All @@ -26,7 +26,7 @@
console.log(response)

if (response.country === 'CN' || response.country === 'HK') {
window.location.replace(PDF_URL);
document.getElementById("pdf_btn").click();
} else {
window.location.replace(LARK_URL);
}
Expand Down

0 comments on commit 4c965bd

Please sign in to comment.