diff --git a/static/demos/light-dark-demo-4/sw.js b/static/demos/light-dark-demo-4/sw.js index 1341063..48f4fcd 100644 --- a/static/demos/light-dark-demo-4/sw.js +++ b/static/demos/light-dark-demo-4/sw.js @@ -25,7 +25,7 @@ async function handle_redirect(req){ const up_promise = new Promise((res)=>{ db_req.onupgradeneeded = (event) => { const db = event.target.result; - IDB_cond_create(db, "light-dark-store", {}).then(res); + IDB_cond_create(db, "light-dark-store", {keyPath: 'id'}).then(res); } }); const suc_promise = new Promise((res)=>{