small changes

This commit is contained in:
Avad3 2024-07-12 18:03:51 -04:00
parent baccc82ab7
commit 14294d8279
3 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
// ts throws an error if you dont do window.fetch // ts throws an error if you dont do window.fetch
import { encodeUrl, rewriteHeaders } from "../bundle"; import { encodeUrl, rewriteHeaders } from "../../bundle";
window.fetch = new Proxy(window.fetch, { window.fetch = new Proxy(window.fetch, {
apply(target, thisArg, argArray) { apply(target, thisArg, argArray) {

View file

@ -10,6 +10,7 @@ WebSocket = new Proxy(WebSocket, {
{ {
"User-Agent": navigator.userAgent "User-Agent": navigator.userAgent
}, },
// @ts-expect-error
ArrayBuffer.prototype ArrayBuffer.prototype
) )
} }

View file

@ -1,4 +1,4 @@
import { encodeUrl, rewriteHeaders } from "../bundle"; import { encodeUrl, rewriteHeaders } from "../../bundle";
XMLHttpRequest.prototype.open = new Proxy(XMLHttpRequest.prototype.open, { XMLHttpRequest.prototype.open = new Proxy(XMLHttpRequest.prototype.open, {
apply(target, thisArg, argArray) { apply(target, thisArg, argArray) {