This commit is contained in:
thororen1234 2024-06-21 16:43:31 -04:00
parent 2960e9a74a
commit 5fbb3698f4
3 changed files with 7 additions and 35 deletions

View file

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