set currentImage to the start if no bookmark
This commit is contained in:
parent
a80735d7d3
commit
b45d69ef2d
|
@ -205,7 +205,10 @@
|
||||||
useBookmarks: "{{ g.user.is_authenticated | tojson }}"
|
useBookmarks: "{{ g.user.is_authenticated | tojson }}"
|
||||||
};
|
};
|
||||||
if (calibre.useBookmarks) {
|
if (calibre.useBookmarks) {
|
||||||
currentImage = eval(calibre.bookmark)
|
currentImage = eval(calibre.bookmark);
|
||||||
|
if (typeof currentImage !== 'number'){
|
||||||
|
currentImage = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
document.onreadystatechange = function () {
|
document.onreadystatechange = function () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user