mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Handle bogus IDB ConstraintError
This commit is contained in:
parent
11936b01ab
commit
d88a3b263b
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class app.DB
|
|||
objectStoreNames = $.makeArray(db.objectStoreNames)
|
||||
|
||||
unless $.arrayDelete(objectStoreNames, 'docs')
|
||||
db.createObjectStore('docs')
|
||||
try db.createObjectStore('docs')
|
||||
|
||||
for doc in app.docs.all() when not $.arrayDelete(objectStoreNames, doc.slug)
|
||||
try db.createObjectStore(doc.slug)
|
||||
|
|
Loading…
Reference in a new issue