diff options
author | Andrew Dolgov <[email protected]> | 2018-06-29 18:34:53 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-06-29 18:34:53 +0300 |
commit | bb6cfa1b5b285d592ebd8d8cc7dde48849c6659c (patch) | |
tree | 661f969369901143ac7348eb106bf6543a0e93c5 | |
parent | 90f84b529554d3f41cc710868fc43954dafaf7eb (diff) |
since pages are percentages now, relax restrictions in storelastrad
-rw-r--r-- | backend.php | 2 | ||||
-rw-r--r-- | read.html | 2 |
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; @@ -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) { |