mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Only check for buggy IndexedDB once
This commit is contained in:
parent
04676edd54
commit
eb58c01ee5
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ class app.DB
|
|||
onOpenSuccess: (event) =>
|
||||
try
|
||||
db = event.target.result
|
||||
db.transaction(['docs', app.docs.all()[0].slug], 'readwrite').abort() # https://bugs.webkit.org/show_bug.cgi?id=136937
|
||||
unless @checkedBuggyIDB
|
||||
db.transaction(['docs', app.docs.all()[0].slug], 'readwrite').abort() # https://bugs.webkit.org/show_bug.cgi?id=136937
|
||||
@checkedBuggyIDB = true
|
||||
catch
|
||||
try db.close()
|
||||
@onOpenError()
|
||||
|
|
Loading…
Reference in a new issue