fixed an issue with chapter navigation on reader
This commit is contained in:
@@ -47,7 +47,7 @@ let observer = null;
|
||||
// === CAMBIO: Parseo de URL para obtener ID ===
|
||||
const parts = window.location.pathname.split('/');
|
||||
const bookId = parts[4];
|
||||
let currentChapterId = parts[3]; // Ahora es un ID (string)
|
||||
let currentChapterId = decodeURIComponent(parts[3]);
|
||||
let provider = parts[2];
|
||||
let chaptersList = []; // Buffer para guardar el orden de capítulos
|
||||
|
||||
@@ -181,8 +181,8 @@ async function loadChapter() {
|
||||
);
|
||||
|
||||
if (chapterMeta) {
|
||||
chapterLabel.textContent = `Chapter ${chapterMeta.number} - ${chapterMeta.title}`;
|
||||
document.title = `Chapter ${chapterMeta.number} - ${chapterMeta.title}`;
|
||||
chapterLabel.textContent = `Chapter ${chapterMeta.number}`;
|
||||
document.title = `Chapter ${chapterMeta.number}`;
|
||||
}
|
||||
|
||||
// Lógica específica para contenido LOCAL
|
||||
|
||||
Reference in New Issue
Block a user