From ea5cf5f3c644945d6c28680db7908fc2344527da Mon Sep 17 00:00:00 2001 From: Pagwin Date: Thu, 4 Sep 2025 15:28:41 -0400 Subject: [PATCH] add -> put --- static/demos/light-dark-demo-4/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/demos/light-dark-demo-4/sw.js b/static/demos/light-dark-demo-4/sw.js index e5d07b2..c9295e2 100644 --- a/static/demos/light-dark-demo-4/sw.js +++ b/static/demos/light-dark-demo-4/sw.js @@ -73,7 +73,7 @@ function toggleLightDark(transaction){ yeet.onerror = (e)=>{console.error("yeet error",e );res();}; } else { - const plonk = obj_store.add({id:1}, 1); + const plonk = obj_store.put({id:1}, 1); plonk.onsuccess = res; plonk.onerror = (e)=>{console.error("plonk error", e);res();}; }