DEBUG store
This commit is contained in:
@@ -26,10 +26,11 @@ export default class IndexedDB {
|
||||
}
|
||||
|
||||
async store(name) {
|
||||
if (!this.db) return await this.open(name)
|
||||
if (!this.db) await this.open(name)
|
||||
return new Promise((resolve, reject) => {
|
||||
const request = this.db.transaction([name], 'readwrite').objectStore(name)
|
||||
resolve(request)
|
||||
const transaction = this.db.transaction([name], 'readwrite')
|
||||
const objectStore = transaction.objectStore(name)
|
||||
resolve(objectStore)
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user