History

Log IDB debug info on error

Thibaut Courouble committed 10 years ago

Commit 74673951 parent 06577922 files · +4 −1Browse files

Unified · Split

2 files
  1. assets/javascripts/app/app.coffee +3 −1
  2. assets/javascripts/app/db.coffee +1 −0
assets/javascripts/app/app.coffee+3−1
@@ -57,7 +57,9 @@ · 56 unmodified lines
57 mode: if @DOC then 'single' else 'full'57 mode: if @DOC then 'single' else 'full'
58 iframe: (window.top isnt window).toString()58 iframe: (window.top isnt window).toString()
59 dataCallback: (data) ->59 dataCallback: (data) ->
60 try $.extend(data.user ||= {}, app.settings.settings)60 try
61 $.extend(data.user ||= {}, app.settings.settings)
62 data.user.lastIDBTransaction = app.lastIDBTransaction if app.lastIDBTransaction
61 data63 data
62 .install()64 .install()
63 @previousErrorHandler = onerror65 @previousErrorHandler = onerror
assets/javascripts/app/db.coffee+1−0
@@ -244,6 +244,7 @@ class app.DB · 243 unmodified lines
244 @useIndexedDB and (not @cachedDocs or @cachedDocs[entry.doc.slug])244 @useIndexedDB and (not @cachedDocs or @cachedDocs[entry.doc.slug])
245 245
246 idbTransaction: (db, options) ->246 idbTransaction: (db, options) ->
247 app.lastIDBTransaction = [options.stores, options.mode]
247 txn = db.transaction(options.stores, options.mode)248 txn = db.transaction(options.stores, options.mode)
248 unless options.ignoreError is false249 unless options.ignoreError is false
249 txn.onerror = (event) ->250 txn.onerror = (event) ->

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t