Unified · Split
| @@ -174,7 +174,7 @@ class app.DB · 173 unmodified lines | ||
| 174 | 174 | txn = db.transaction [entry.doc.slug], 'readonly' |
| 175 | 175 | store = txn.objectStore(entry.doc.slug) |
| 176 | 176 | |
| 177 | − req = store.get(entry.path) | |
| 177 | + req = store.get(entry.dbPath()) | |
| 178 | 178 | req.onsuccess = -> if req.result then onSuccess(req.result) else onError() |
| 179 | 179 | req.onerror = onError |
| 180 | 180 | @loadDocsCache(db) unless @cachedDocs |
| @@ -23,6 +23,9 @@ class app.models.Entry extends app.Model · 22 unmodified lines | ||
| 23 | 23 | fullPath: -> |
| 24 | 24 | @doc.fullPath if @isIndex() then '' else @path |
| 25 | 25 | |
| 26 | + dbPath: -> | |
| 27 | + @path.replace /#.*/, '' | |
| 28 | + | |
| 26 | 29 | filePath: -> |
| 27 | 30 | @doc.fullPath @_filePath() |
| 28 | 31 | |