preview-demo: destructure origin
Some checks failed
Build pull request / Build pull request (pull_request) Failing after 3m22s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Void 2026-11-07 18:52:30 +00:00
commit e3278a4d7e

View file

@ -84,7 +84,7 @@ export const guardedFetch =
export const installDemo = (win: Window & typeof globalThis = window) => {
const server = createDemoServer();
const origin = win.location.origin;
const { origin } = win.location;
const realFetch = win.fetch.bind(win);
win.fetch = guardedFetch(server, origin, realFetch);