mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix app.DB#version returning boolean instead version
This commit is contained in:
parent
ccf9171ccc
commit
4f781d7e82
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class app.DB
|
|||
store = txn.objectStore('docs')
|
||||
|
||||
req = store.get(doc.slug)
|
||||
req.onsuccess = -> fn(!!req.result)
|
||||
req.onsuccess = -> fn(req.result)
|
||||
req.onerror = -> fn(false)
|
||||
return
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue