From 57d16248d91d53e36b5a94bd9fc5ad5f2eec45b3 Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Thu, 17 Oct 2019 17:21:07 +0530 Subject: [PATCH] fixing bug in initDB --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 6a1d084..2f93325 100644 --- a/index.html +++ b/index.html @@ -5309,8 +5309,8 @@ } idb.onsuccess = (event) => { var db = event.target.result; - if (JSON.stringify(Object.values(db.objectStoreNames)) === JSON.stringify(Object.keys( - objectStores))) + if (JSON.stringify(Object.values(db.objectStoreNames).sort()) === JSON.stringify(Object.keys( + objectStores).sort())) resolve("Initiated IndexedDB"); else reject("IndexedDB already exist with different ObjectStores!");