|
|
|
@ -17,7 +17,8 @@ async function cacheFirst(request) {
|
|
|
|
if (request.url.includes('/-/frame')) {
|
|
|
|
if (request.url.includes('/-/frame')) {
|
|
|
|
const url = new URL(request.url)
|
|
|
|
const url = new URL(request.url)
|
|
|
|
if (url.pathname === '/-/frame') {
|
|
|
|
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, {
|
|
|
|
return new Response(html, {
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'text/html',
|
|
|
|
'Content-Type': 'text/html',
|
|
|
|
|