about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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) {