From 8ab54de701f9214e433258c3a84fa741fdafff1b Mon Sep 17 00:00:00 2001 From: coomdev Date: Sat, 25 Dec 2021 13:09:41 +0100 Subject: [PATCH] haha --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 170385c..26b929d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,7 +11,7 @@ const CUM0 = Buffer.from("CUM\0" + "0"); type Awaited = T extends PromiseLike ? U : T -const xmlhttprequest = GM ? GM.xmlHttpRequest : GM_xmlhttpRequest; +const xmlhttprequest = GM_xmlhttpRequest ? GM_xmlhttpRequest : (GM ? GM.xmlHttpRequest : GM_xmlhttpRequest); function GM_fetch(...[url, opt]: Parameters) { function blobTo(to: string, blob: Blob) {