diff options
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -600,16 +600,16 @@ localforage.setItem(cacheId("lastread"), {cfi: data.cfi, page: data.page, total: data.total}); - book.gotoCfi(data.cfi); + if (data.cfi) book.gotoCfi(data.cfi); } else { localforage.getItem(cacheId("lastread")).then(function(item) { - if (item) book.gotoCfi(item.cfi); + if (item && item.cfi) book.gotoCfi(item.cfi); }); } }); } else { localforage.getItem(cacheId("lastread")).then(function(item) { - if (item) book.gotoCfi(item.cfi); + if (item && item.cfi) book.gotoCfi(item.cfi); }); } |