preview-demo: destructure open
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0f1fc066e4
commit
df536f854e
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ export const installDemo = (win: Window & typeof globalThis = window) => {
|
|||
}
|
||||
win.WebSocket = GuardedSocket;
|
||||
|
||||
const realOpen = win.XMLHttpRequest.prototype.open;
|
||||
const { open: realOpen } = win.XMLHttpRequest.prototype;
|
||||
win.XMLHttpRequest.prototype.open = function open(
|
||||
this: XMLHttpRequest,
|
||||
method: string,
|
||||
|
|
|
|||
Loading…
Reference in a new issue