From 721cff0a1a540e054301e0ea5e24fe0dd7ce6b5f Mon Sep 17 00:00:00 2001 From: Pagwin Date: Tue, 2 Sep 2025 16:14:50 -0400 Subject: [PATCH] fix 3 --- static/demos/light-dark-demo-4/sw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/demos/light-dark-demo-4/sw.js b/static/demos/light-dark-demo-4/sw.js index 49cd71b..40f8661 100644 --- a/static/demos/light-dark-demo-4/sw.js +++ b/static/demos/light-dark-demo-4/sw.js @@ -35,7 +35,7 @@ async function handle_redirect(req){ toggleLightDark(transaction); transaction.commit(); }; - }; + }); await Promise.all([up_promise, suc_promise]); const referrer = request.headers.get('Referer') || '/'; return new Response("You should be getting redirected back to the page you came from shortly",{ @@ -43,7 +43,7 @@ async function handle_redirect(req){ headers: { 'Location': referrer } - }) + }); } function IDB_cond_create(db, objectStoreName, opts={}){ return new Promise((res)=>{