Handle duplicate store error in onUpgradeNeeded

pull/382/head
Thibaut Courouble 9 years ago
parent 802600b602
commit 54a3ca0d8f

@ -65,7 +65,7 @@ class app.DB
db.createObjectStore('docs')
for doc in app.docs.all() when not $.arrayDelete(objectStoreNames, doc.slug)
db.createObjectStore(doc.slug)
try db.createObjectStore(doc.slug)
for name in objectStoreNames
try db.deleteObjectStore(name)

Loading…
Cancel
Save