From f9dbd884b3d1d0cacb60af946e8c72c79034ffa1 Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Sun, 25 Dec 2022 20:47:25 +0100 Subject: [PATCH] Add css bundle download for mods --- src/utils.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index db71f47..19b4da9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -310,8 +310,15 @@ async function updateModBundle() { cordwood: "https://raw.githubusercontent.com/Cordwood/builds/master/index.js", shelter: "https://raw.githubusercontent.com/uwu/shelter-builds/main/shelter.js" }; + const clientModsCss = { + vencord: "https://github.com/Vendicated/Vencord/releases/download/devbuild/browser.css", + cordwood: "https://armcord.xyz/placeholder.css", + shelter: "https://armcord.xyz/placeholder.css" + }; var bundle: string = await (await fetch(clientMods[name as keyof typeof clientMods])).text(); fs.writeFileSync(distFolder + "bundle.js", bundle, "utf-8"); + var css: string = await (await fetch(clientModsCss[name as keyof typeof clientModsCss])).text(); + fs.writeFileSync(distFolder + "bundle.css", css, "utf-8"); } catch (e) { console.log("[Mod loader] Failed to install mods"); console.error(e);