localStorage is strings, need to parseInt
This commit is contained in:
parent
d689733bbb
commit
3b533452bc
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function newSeed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isReading(work) {
|
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', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue