use undefined, not null in the case of non-readwrite transaction
This commit is contained in:
@@ -36,7 +36,7 @@ async function get_slop_store(readwrite) {
|
|||||||
|
|
||||||
db_request.onsuccess = (event) => {
|
db_request.onsuccess = (event) => {
|
||||||
const db = event.target.result
|
const db = event.target.result
|
||||||
const transaction = db.transaction(["slop"], readwrite ? "readwrite" : null)
|
const transaction = db.transaction(["slop"], readwrite ? "readwrite" : undefined)
|
||||||
slop_store = transaction.objectStore("slop")
|
slop_store = transaction.objectStore("slop")
|
||||||
resolve(slop_store)
|
resolve(slop_store)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user