feat: don't parse if not able to compile

This commit is contained in:
Lewis Crichton 2023-09-25 19:06:36 +01:00
parent 5bc24a5d78
commit 6fbe24a268
No known key found for this signature in database

View file

@ -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);