diff --git a/static/demos/light-dark-demo-4/sw.js b/static/demos/light-dark-demo-4/sw.js index 1c99a27..64abe3a 100644 --- a/static/demos/light-dark-demo-4/sw.js +++ b/static/demos/light-dark-demo-4/sw.js @@ -88,7 +88,7 @@ async function handle_html(req, resp, body){ transaction.objectStore("light-dark-store", "readwrite"); toggleLightDark(transaction); const grab = obj_store.get(1); - grab.onsuccess event => res(!!event.result); + grab.onsuccess = (event) => {res(!!event.result)}; }; });