From ea864b9a0087d9a14b0423d402245e9e4a92814e Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Thu, 30 Nov 2023 19:04:22 +0000 Subject: [PATCH] fix: compiler not properly inserting booleans for less/stylus --- src/utils/themes/usercss/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/themes/usercss/compiler.ts b/src/utils/themes/usercss/compiler.ts index 5acfc805b..471557752 100644 --- a/src/utils/themes/usercss/compiler.ts +++ b/src/utils/themes/usercss/compiler.ts @@ -79,7 +79,7 @@ export async function compileUsercss(fileName: string) { switch (v.type) { case "checkbox": { if (["less", "stylus"].includes(preprocessor)) { - varsToPass[k] = varsToPass[k] ? "1" : "0"; + varsToPass[k] = varsToPass[k] === "1" ? "true" : "false"; } break; }