fix: compiler not properly inserting booleans for less/stylus
This commit is contained in:
parent
d7e5c06e83
commit
ea864b9a00
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export async function compileUsercss(fileName: string) {
|
||||||
switch (v.type) {
|
switch (v.type) {
|
||||||
case "checkbox": {
|
case "checkbox": {
|
||||||
if (["less", "stylus"].includes(preprocessor)) {
|
if (["less", "stylus"].includes(preprocessor)) {
|
||||||
varsToPass[k] = varsToPass[k] ? "1" : "0";
|
varsToPass[k] = varsToPass[k] === "1" ? "true" : "false";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue