Armcord -> Legcord

This commit is contained in:
thororen1234 2024-10-23 12:51:02 -04:00
parent ebde2663d1
commit d9740a6989
2 changed files with 2 additions and 2 deletions

View file

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

View file

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