Allow multiple chapter index buttons

This commit is contained in:
Tetrakern 2024-01-27 18:27:48 +01:00
parent dfcd5962b5
commit fae2dda4db
2 changed files with 2 additions and 2 deletions

2
js/chapter.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1285,7 +1285,7 @@ function fcn_readingProgress() {
// Append cloned chapter list once when the popup menu is opened
_$$('.chapter-list-popup-toggle').forEach(element => {
element.addEventListener('click', () => {
_$('[data-target="popup-chapter-list"]')?.appendChild(fcn_chapterList.cloneNode(true));
element.querySelector('[data-target="popup-chapter-list"]')?.appendChild(fcn_chapterList.cloneNode(true));
}, { once: true });
});