feat: don't parse if not able to compile
This commit is contained in:
parent
5bc24a5d78
commit
6fbe24a268
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue