enhanced anime backend
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user