Fix reader.html: Use parseFloat instead of parseInt to support decimal chapters

This commit is contained in:
小虾米 2026-03-27 17:03:47 +08:00
parent 4c808b131e
commit c5a4ac4ff8

View File

@ -423,9 +423,9 @@
<script src="js/app.js?v=5"></script>
<script>
// 获取URL参数中的章节ID
// 获取URL参数中的章节ID(支持小数章节)
const urlParams = new URLSearchParams(window.location.search);
let currentChapter = parseInt(urlParams.get('id')) || 1;
let currentChapter = parseFloat(urlParams.get('id')) || 1;
// 获取带缓存禁用的时间戳
function getCacheBuster() {