style: for if
This commit is contained in:
parent
19a87e3e94
commit
b350087a7a
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue