summaryrefslogtreecommitdiff
path: root/offline.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-07 11:16:45 +0300
committerAndrew Dolgov <[email protected]>2009-02-07 11:16:45 +0300
commit6161d5cc87503a750ec5c1c46008f5d55a8c1b17 (patch)
tree9820bab91656f404bd750790d492c34d6d93c50d /offline.js
parent71af6d360960eddbd4233b2ed20b01aca5ee2fe1 (diff)
viewfeed: update local db on catchup
Diffstat (limited to 'offline.js')
-rw-r--r--offline.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/offline.js b/offline.js
index be28b43d1..7910bba81 100644
--- a/offline.js
+++ b/offline.js
@@ -1272,6 +1272,8 @@ function update_local_sync_data() {
function catchup_local_feed(id, is_cat) {
try {
+ if (!db) return;
+
if (!is_cat) {
if (id >= 0) {
db.execute("UPDATE articles SET unread = 0 WHERE feed_id = ?", [id]);