summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-06-29 18:34:53 +0300
committerAndrew Dolgov <[email protected]>2018-06-29 18:34:53 +0300
commitbb6cfa1b5b285d592ebd8d8cc7dde48849c6659c (patch)
tree661f969369901143ac7348eb106bf6543a0e93c5
parent90f84b529554d3f41cc710868fc43954dafaf7eb (diff)
since pages are percentages now, relax restrictions in storelastrad
-rw-r--r--backend.php2
-rw-r--r--read.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index a749f60..607f923 100644
--- a/backend.php
+++ b/backend.php
@@ -217,7 +217,7 @@
$id = $line["id"];
$lastread = (int) $line["lastread"];
- if ($lastread < $page || $page == -1) {
+ if ($lastread <= $page || $page == -1) {
if ($page == -1) $page = 0;
diff --git a/read.html b/read.html
index bc0fce2..b29a112 100644
--- a/read.html
+++ b/read.html
@@ -786,7 +786,7 @@
$("#page_pct").html(parseInt(pct*100) + '%');
if (_store_position && new Date().getTime()/1000 - _last_position_sync > 15) {
- console.log("storing lastread");
+ console.log("storing lastread", currentPage, currentCfi);
if (navigator.onLine) {