summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-08-01 20:27:06 +0300
committerAndrew Dolgov <[email protected]>2017-08-01 20:27:06 +0300
commitb51c255f7d7ab3e7dae55039e2e70d4926f263bd (patch)
tree8c5fc848aa620717f1fcfd63d47ebde6909b8a46 /read.html
parent94f002e9cc28d677b004d42b9fcec818dd07f64f (diff)
startup: only go to remove cfi if different from local
Diffstat (limited to 'read.html')
-rw-r--r--read.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.html b/read.html
index 1c0dc41..8231cea 100644
--- a/read.html
+++ b/read.html
@@ -666,7 +666,7 @@
localforage.setItem(cacheId("lastread"),
{cfi: data.cfi, page: data.page, total: data.total});
- if (data.cfi) book.gotoCfi(data.cfi);
+ if (data.cfi && item.cfi != data.cfi) book.gotoCfi(data.cfi);
}
});
}