From 1c0dff366613ed7402cb7a25efc5a5ff55cef584 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Thu, 28 Dec 2023 14:05:25 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20pass=20`vencord`=20variable=20when=20co?= =?UTF-8?q?mpiling=20this=20is=20another=20one=20of=20those=20standards-de?= =?UTF-8?q?fining=20things=20like=20`vc-requiredPlugins`,=20but=20i=20do?= =?UTF-8?q?=20genuinely=20think=20passing=20the=20client=20mod=20that's=20?= =?UTF-8?q?in=20use=20here=20will=20be=20beneficial=20in=20the=20long=20ru?= =?UTF-8?q?n=20for=20usercss=20authors=20since=20they=20can=20write=20one?= =?UTF-8?q?=20file=20that=20works=20across=20multiple.=20hopefully=20other?= =?UTF-8?q?=20mods=20that=20implement=20usercss=20will=20adopt=20this=20?= =?UTF-8?q?=F0=9F=A4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/themes/usercss/compiler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/themes/usercss/compiler.ts b/src/utils/themes/usercss/compiler.ts index f7185e180..0d9305be5 100644 --- a/src/utils/themes/usercss/compiler.ts +++ b/src/utils/themes/usercss/compiler.ts @@ -75,7 +75,9 @@ export async function compileUsercss(fileName: string) { return null; } - const varsToPass = {}; + const varsToPass = { + vencord: "true" + }; for (const [k, v] of Object.entries(vars)) { varsToPass[k] = Settings.userCssVars[id]?.[k] ?? v.default;