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/app (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()

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