enhanced anime backend

This commit is contained in:
2025-12-04 00:30:41 +01:00
parent bf27d173e9
commit 6973f1485d
10 changed files with 205 additions and 112 deletions

View File

@@ -482,13 +482,12 @@ function updateURL(newChapter) {
document.getElementById('back-btn').addEventListener('click', () => {
const parts = window.location.pathname.split('/');
const provider = parts[2];
const mangaId = parts[4];
const urlParams = new URLSearchParams(window.location.search);
let source = urlParams.get('source');
if (!source) {
if (source === 'anilist') {
window.location.href = `/book/${mangaId}`;
} else {
window.location.href = `/book/${source}/${mangaId}`;