summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/read.html b/read.html
index 203eb2c..1c0dc41 100644
--- a/read.html
+++ b/read.html
@@ -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);