This commit is contained in:
Pagwin 2025-01-02 22:10:58 -05:00
parent 66bf451657
commit b39ac2c35b
No known key found for this signature in database
GPG key ID: 81137023740CA260

View file

@ -20,6 +20,7 @@ async function fetchResponse(event) {
// this is a brittle way of accomplishing our desired behavior
body.replace(`<input id="css_state" type="checkbox" hidden>`,
`<input id="css_state" type="checkbox" hidden ${theme_toggled ? "checked" : ""}>`);
console.log(body);
return new Response(body, resp);
}