SupportHelper: Add OpenAsar info

This commit is contained in:
Vendicated 2023-05-02 02:08:20 +02:00
parent c62d05e1b3
commit 9f534c0685
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

View File

@ -45,7 +45,7 @@ export default definePlugin({
const { RELEASE_CHANNEL } = window.GLOBAL_ENV;
const client = (() => {
if (IS_DISCORD_DESKTOP) return `Desktop v${DiscordNative.app.getVersion()}`;
if (IS_DISCORD_DESKTOP) return `Discord Desktop v${DiscordNative.app.getVersion()}`;
if (IS_VENCORD_DESKTOP) return `Vencord Desktop v${VencordDesktopNative.app.getVersion()}`;
if ("armcord" in window) return `ArmCord v${window.armcord.version}`;
return `Web (${navigator.userAgent})`;
@ -58,6 +58,7 @@ export default definePlugin({
> Client: ${client}
> Platform: ${window.navigator.platform}
> Vencord Version: ${gitHash}${settings.additionalInfo}
> OpenAsar: ${"openasar" in window}
> Outdated: ${isOutdated}
> Enabled Plugins:
${makeCodeblock(Object.keys(plugins).filter(Vencord.Plugins.isPluginEnabled).join(", "))}