Skip to content

Commit 54a3ca0

Browse files
committed
Handle duplicate store error in onUpgradeNeeded
1 parent 802600b commit 54a3ca0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/javascripts/app/db.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class app.DB
6565
db.createObjectStore('docs')
6666

6767
for doc in app.docs.all() when not $.arrayDelete(objectStoreNames, doc.slug)
68-
db.createObjectStore(doc.slug)
68+
try db.createObjectStore(doc.slug)
6969

7070
for name in objectStoreNames
7171
try db.deleteObjectStore(name)

0 commit comments

Comments
 (0)