mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-13 02:37:20 +01:00
8 lines
182 B
JavaScript
8 lines
182 B
JavaScript
export function deleteAll (store, index, keyRange) {
|
|
index.getAllKeys(keyRange).onsuccess = e => {
|
|
for (let result of e.target.result) {
|
|
store.delete(result)
|
|
}
|
|
}
|
|
}
|