From 409fb6ff4e32131aa2a7ca5f9733c17d8a69f13f Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 22 Oct 2022 23:47:21 +0200 Subject: [PATCH] encoding binary doesn't return a buffer?? --- scripts/build/buildWeb.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/buildWeb.mjs b/scripts/build/buildWeb.mjs index 4d6cf3dc..009d5e85 100755 --- a/scripts/build/buildWeb.mjs +++ b/scripts/build/buildWeb.mjs @@ -71,11 +71,11 @@ await Promise.all( zip({ dist: { - "Vencord.js": readFileSync("dist/browser.js", "binary") + "Vencord.js": readFileSync("dist/browser.js") }, ...Object.fromEntries(await Promise.all(["background.js", "content.js", "manifest.json"].map(async f => [ f, - await readFile(join("browser", f), "binary") + await readFile(join("browser", f)) ]))), }, {}, (err, data) => { if (err) {