History

Only check for buggy IndexedDB once

Thibaut committed 11 years ago

Commit eb58c011 parent 04676ed1 file · +3 −1Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/app/db.coffee+3−1
@@ -23,7 +23,9 @@ class app.DB · 22 unmodified lines
2323 onOpenSuccess: (event) =>
2424 try
2525 db = event.target.result
26− db.transaction(['docs', app.docs.all()[0].slug], 'readwrite').abort() # https://bugs.webkit.org/show_bug.cgi?id=136937
26+ unless @checkedBuggyIDB
27+ db.transaction(['docs', app.docs.all()[0].slug], 'readwrite').abort() # https://bugs.webkit.org/show_bug.cgi?id=136937
28+ @checkedBuggyIDB = true
2729 catch
2830 try db.close()
2931 @onOpenError()