set currentImage to the start if no bookmark

This commit is contained in:
Olivier 2022-10-11 23:43:54 +09:00
parent a80735d7d3
commit b45d69ef2d

View File

@ -205,7 +205,10 @@
useBookmarks: "{{ g.user.is_authenticated | tojson }}"
};
if (calibre.useBookmarks) {
currentImage = eval(calibre.bookmark)
currentImage = eval(calibre.bookmark);
if (typeof currentImage !== 'number'){
currentImage = 0;
}
}
document.onreadystatechange = function () {