Skip to content

Commit 4f781d7

Browse files
committed
Fix app.DB#version returning boolean instead version
1 parent ccf9171 commit 4f781d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎assets/javascripts/app/db.coffee‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class app.DB
9898
store = txn.objectStore('docs')
9999

100100
req = store.get(doc.slug)
101-
req.onsuccess = -> fn(!!req.result)
101+
req.onsuccess = -> fn(req.result)
102102
req.onerror = -> fn(false)
103103
return
104104
return

0 commit comments

Comments
 (0)