mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
small changes
This commit is contained in:
parent
baccc82ab7
commit
14294d8279
3 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
|
@ -10,6 +10,7 @@ WebSocket = new Proxy(WebSocket, {
|
||||||
{
|
{
|
||||||
"User-Agent": navigator.userAgent
|
"User-Agent": navigator.userAgent
|
||||||
},
|
},
|
||||||
|
// @ts-expect-error
|
||||||
ArrayBuffer.prototype
|
ArrayBuffer.prototype
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue