preview-demo: destructure open

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

View file

@ -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,