DEBUGL
This commit is contained in:
@@ -17,7 +17,7 @@ export default class IndexedDB {
|
||||
}
|
||||
request.onupgradeneeded = (event) => {
|
||||
const db = event.target.result
|
||||
if (!db.objectStoreNames.contains('todo')) {
|
||||
if (!db.objectStoreNames.contains(name)) {
|
||||
db.createObjectStore(name, { keyPath: 'id' })
|
||||
console.log('store created:', name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user