From c0e3f584011f2f6d4ef80433f9fc3fee1300120a Mon Sep 17 00:00:00 2001 From: Jack Case Date: Thu, 16 Oct 2025 19:54:12 +0000 Subject: [PATCH] use undefined, not null in the case of non-readwrite transaction --- scripts/report-slop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/report-slop.js b/scripts/report-slop.js index bbf0f6b..cd64751 100644 --- a/scripts/report-slop.js +++ b/scripts/report-slop.js @@ -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) }