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) =>
|
onOpenSuccess: (event) =>
|
||||||
try
|
try
|
||||||
db = event.target.result
|
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
|
catch
|
||||||
try db.close()
|
try db.close()
|
||||||
@onOpenError()
|
@onOpenError()
|
||||||
|
|
Loading…
Reference in a new issue