Skip to content

Commit eb58c01

Browse files
committed
Only check for buggy IndexedDB once
1 parent 04676ed commit eb58c01

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎assets/javascripts/app/db.coffee‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class app.DB
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()

0 commit comments

Comments
 (0)