diff --git a/src/components/ThemeSettings/ThemesTab.tsx b/src/components/ThemeSettings/ThemesTab.tsx index ff266192..3175d913 100644 --- a/src/components/ThemeSettings/ThemesTab.tsx +++ b/src/components/ThemeSettings/ThemesTab.tsx @@ -211,7 +211,7 @@ function ThemesTab() { for (const { fileName, content } of themes) { if (!fileName.endsWith(".css")) continue; - if ((!IS_WEB || "armcord" in window) && fileName.endsWith(".user.css")) { + if ((!IS_WEB || "legcord" in window) && fileName.endsWith(".user.css")) { // handle it as usercss const header = await usercssParse(content, fileName); diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index 248da3d6..c81918f7 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -75,7 +75,7 @@ async function generateDebugInfoMessage() { if (IS_DISCORD_DESKTOP) return `Discord Desktop v${DiscordNative.app.getVersion()}`; if (IS_VESKTOP) return `Vesktop v${VesktopNative.app.getVersion()}`; if (IS_EQUIBOP) return `Equibop v${VesktopNative.app.getVersion()}`; - if ("legcord" in window) return `LegCord v${window.armcord.version}`; + if ("legcord" in window) return `LegCord v${window.legcord.version}`; // @ts-expect-error const name = typeof unsafeWindow !== "undefined" ? "UserScript" : "Web";