From 6fbe24a268c6b0039e4cb0acc88dd2a9c5cfbd11 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 25 Sep 2023 19:06:36 +0100 Subject: [PATCH] feat: don't parse if not able to compile --- src/components/ThemeSettings/ThemesTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThemeSettings/ThemesTab.tsx b/src/components/ThemeSettings/ThemesTab.tsx index 91868e36..7a61c59c 100644 --- a/src/components/ThemeSettings/ThemesTab.tsx +++ b/src/components/ThemeSettings/ThemesTab.tsx @@ -228,7 +228,7 @@ function ThemesTab() { for (const { fileName, content } of themes) { if (!fileName.endsWith(".css")) continue; - if (fileName.endsWith(".user.css")) { + if ((!IS_WEB || "armcord" in window) && fileName.endsWith(".user.css")) { // handle it as usercss const header = await usercssParse(content, fileName);