preview-demo: destructure origin
Some checks failed
Build pull request / Build pull request (pull_request) Failing after 3m22s
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:
parent
df536f854e
commit
e3278a4d7e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue