use undefined, not null in the case of non-readwrite transaction

This commit is contained in:
Jack Case
2025-10-16 19:54:12 +00:00
parent 75d141099b
commit c0e3f58401

View File

@@ -36,7 +36,7 @@ async function get_slop_store(readwrite) {
db_request.onsuccess = (event) => {
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")
resolve(slop_store)
}