diff options
author | Andrew Dolgov <[email protected]> | 2017-07-30 23:21:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-07-30 23:21:52 +0300 |
commit | 7f715fb256c380b6d01891054bc6c14dbc06c869 (patch) | |
tree | 23d97bf0e41f729ce26eb80a296666c9412bdcc4 | |
parent | fe88505aaa7ce84d2c6e5a706edf0e99490ab52d (diff) |
mention a possible problem with previous
-rw-r--r-- | read.html | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -647,6 +647,11 @@ localforage.setItem(cacheId("pagination"), pageList); } + // this might revert progress if server has older position stored + // because for example this client read further while offline + // probably need to compare item.page and data.page since those are + // uniform between devices now + localforage.getItem(cacheId("lastread")).then(function(item) { console.log('lr local', item.cfi); |