diff --git a/sw.js b/sw.js index 76ea95a..9675154 100644 --- a/sw.js +++ b/sw.js @@ -17,7 +17,8 @@ async function cacheFirst(request) { if (request.url.includes('/-/frame')) { const url = new URL(request.url) if (url.pathname === '/-/frame') { - const {html, csp} = url.searchParams + const html = url.searchParams.get('html') + const csp = url.searchParams.get('csp') return new Response(html, { headers: { 'Content-Type': 'text/html',