From 4b36f5372c5903efad4c0d703a67394a06adc37c Mon Sep 17 00:00:00 2001 From: Pagwin Date: Tue, 2 Sep 2025 16:43:53 -0400 Subject: [PATCH] fix 7 --- static/demos/light-dark-demo-4/sw.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/demos/light-dark-demo-4/sw.js b/static/demos/light-dark-demo-4/sw.js index 64abe3a..55b6f94 100644 --- a/static/demos/light-dark-demo-4/sw.js +++ b/static/demos/light-dark-demo-4/sw.js @@ -85,8 +85,7 @@ async function handle_html(req, resp, body){ const transaction = db.transaction("light-dark-store"); transaction.oncomplete = res; - transaction.objectStore("light-dark-store", "readwrite"); - toggleLightDark(transaction); + const obj_store = transaction.objectStore("light-dark-store", "read"); const grab = obj_store.get(1); grab.onsuccess = (event) => {res(!!event.result)}; };