From d88a3b263bc29b4f2544d7951f98be8b365c3d13 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Fri, 1 Jul 2016 10:58:12 -0400 Subject: [PATCH] Handle bogus IDB ConstraintError --- assets/javascripts/app/db.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/app/db.coffee b/assets/javascripts/app/db.coffee index de58bc22..a88c6d06 100644 --- a/assets/javascripts/app/db.coffee +++ b/assets/javascripts/app/db.coffee @@ -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)