]> git.wh0rd.org Git - tt-rss.git/commitdiff
strict js: fix catchupBatchedArticles
authorwn_ <invalid@email.com>
Sat, 10 Mar 2018 13:38:23 +0000 (07:38 -0600)
committerwn_ <invalid@email.com>
Sat, 10 Mar 2018 13:38:23 +0000 (07:38 -0600)
This addresses the "Unread not removed from row" issue.

js/viewfeed.js

index a00ac6f66f41e6a6eb7c82703e85cd32e16661fc..0c15a23b921d3b0fbfd83c8239c19ad61c1613c0 100755 (executable)
@@ -1259,7 +1259,7 @@ function catchupBatchedArticles() {
 
                                _catchup_request_sent = false;
 
-                               reply = JSON.parse(transport.responseText);
+                               var reply = JSON.parse(transport.responseText);
                                var batch = reply.ids;
 
                                batch.each(function (id) {