localStorage is strings, need to parseInt
This commit is contained in:
parent
d689733bbb
commit
3b533452bc
|
@ -29,7 +29,7 @@ function newSeed() {
|
|||
}
|
||||
|
||||
function isReading(work) {
|
||||
return READING_WORKS.indexOf(work.id) !== -1 || !!localStorage.getItem(`${work.id}-currentPage`);
|
||||
return READING_WORKS.indexOf(work.id) !== -1 || !!parseInt(localStorage.getItem(`${work.id}-currentPage`));
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
|
Loading…
Reference in a new issue