Fix reader.html: Use parseFloat instead of parseInt to support decimal chapters
This commit is contained in:
parent
4c808b131e
commit
c5a4ac4ff8
@ -423,9 +423,9 @@
|
|||||||
|
|
||||||
<script src="js/app.js?v=5"></script>
|
<script src="js/app.js?v=5"></script>
|
||||||
<script>
|
<script>
|
||||||
// 获取URL参数中的章节ID
|
// 获取URL参数中的章节ID(支持小数章节)
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
let currentChapter = parseInt(urlParams.get('id')) || 1;
|
let currentChapter = parseFloat(urlParams.get('id')) || 1;
|
||||||
|
|
||||||
// 获取带缓存禁用的时间戳
|
// 获取带缓存禁用的时间戳
|
||||||
function getCacheBuster() {
|
function getCacheBuster() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user