style: for if

This commit is contained in:
Lewis Crichton 2023-09-03 13:26:07 +01:00
parent 19a87e3e94
commit b350087a7a
No known key found for this signature in database

View file

@ -65,9 +65,7 @@ async function initThemes() {
const cssVars: string[] = []; const cssVars: string[] = [];
// for UserCSS, we need to inject the variables // for UserCSS, we need to inject the variables
for (const theme of enabledThemes) { for (const theme of enabledThemes) if (theme.endsWith(".user.css")) {
if (!theme.endsWith(".user.css")) continue;
const themeData = await VencordNative.themes.getThemeData(theme); const themeData = await VencordNative.themes.getThemeData(theme);
if (!themeData) continue; if (!themeData) continue;