Update compiler.ts

This commit is contained in:
thororen 2024-07-14 14:48:25 -04:00 committed by GitHub
parent f349b19a31
commit f3ea99e573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,11 +55,8 @@ const preprocessors: { [preprocessor: string]: (text: string, vars: Record<strin
}; };
export async function compileUsercss(fileName: string) { export async function compileUsercss(fileName: string) {
try { const themeData = await VencordNative.themes.getThemeData(fileName);
var themeData = await VencordNative.themes.getThemeData(fileName);
} catch (e) {
UserCSSLogger.warn("Failed to get theme data for", fileName, "(has it gone missing?)", e);
}
if (!themeData) return null; if (!themeData) return null;
// UserCSS preprocessor order look like this: // UserCSS preprocessor order look like this: