fixing bug in initDB

This commit is contained in:
Sai Raj 2019-10-17 17:21:07 +05:30 committed by GitHub
parent 049cd5823c
commit 57d16248d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!");