aboutsummaryrefslogtreecommitdiff
path: root/browser
diff options
context:
space:
mode:
authorCloudburst <18114966+C10udburst@users.noreply.github.com>2023-02-28 23:13:49 +0100
committerGitHub <noreply@github.com>2023-02-28 23:13:49 +0100
commitc91b0df6071639471cd41b481e7188259a3c1159 (patch)
tree812d0f5765225e8021df6546703df61d98b7a897 /browser
parentf56d99e133ffd3c3baef2d6ece2bc9bc12278a01 (diff)
downloadVencord-c91b0df6071639471cd41b481e7188259a3c1159.tar.gz
Vencord-c91b0df6071639471cd41b481e7188259a3c1159.tar.bz2
Vencord-c91b0df6071639471cd41b481e7188259a3c1159.zip
GMPolyfill: add header prop (#543)
Diffstat (limited to 'browser')
-rw-r--r--browser/GMPolyfill.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/browser/GMPolyfill.js b/browser/GMPolyfill.js
index 3e0606d..6f05ca0 100644
--- a/browser/GMPolyfill.js
+++ b/browser/GMPolyfill.js
@@ -92,6 +92,7 @@ function GM_fetch(url, opt) {
resp.arrayBuffer = () => blobTo("arrayBuffer", blob);
resp.text = () => blobTo("text", blob);
resp.json = async () => JSON.parse(await blobTo("text", blob));
+ resp.headers = new Headers(parseHeaders(resp.responseHeaders));
resolve(resp);
};
options.ontimeout = () => reject("fetch timeout");