Log IDB debug info on error

pull/412/merge
Thibaut Courouble 9 years ago
parent 0657792588
commit 7467395c33

@ -57,7 +57,9 @@
mode: if @DOC then 'single' else 'full'
iframe: (window.top isnt window).toString()
dataCallback: (data) ->
try $.extend(data.user ||= {}, app.settings.settings)
try
$.extend(data.user ||= {}, app.settings.settings)
data.user.lastIDBTransaction = app.lastIDBTransaction if app.lastIDBTransaction
data
.install()
@previousErrorHandler = onerror

@ -244,6 +244,7 @@ class app.DB
@useIndexedDB and (not @cachedDocs or @cachedDocs[entry.doc.slug])
idbTransaction: (db, options) ->
app.lastIDBTransaction = [options.stores, options.mode]
txn = db.transaction(options.stores, options.mode)
unless options.ignoreError is false
txn.onerror = (event) ->

Loading…
Cancel
Save