SupportHelper: Add OpenAsar info
This commit is contained in:
parent
c62d05e1b3
commit
9f534c0685
|
@ -45,7 +45,7 @@ export default definePlugin({
|
||||||
const { RELEASE_CHANNEL } = window.GLOBAL_ENV;
|
const { RELEASE_CHANNEL } = window.GLOBAL_ENV;
|
||||||
|
|
||||||
const client = (() => {
|
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 (IS_VENCORD_DESKTOP) return `Vencord Desktop v${VencordDesktopNative.app.getVersion()}`;
|
||||||
if ("armcord" in window) return `ArmCord v${window.armcord.version}`;
|
if ("armcord" in window) return `ArmCord v${window.armcord.version}`;
|
||||||
return `Web (${navigator.userAgent})`;
|
return `Web (${navigator.userAgent})`;
|
||||||
|
@ -58,6 +58,7 @@ export default definePlugin({
|
||||||
> Client: ${client}
|
> Client: ${client}
|
||||||
> Platform: ${window.navigator.platform}
|
> Platform: ${window.navigator.platform}
|
||||||
> Vencord Version: ${gitHash}${settings.additionalInfo}
|
> Vencord Version: ${gitHash}${settings.additionalInfo}
|
||||||
|
> OpenAsar: ${"openasar" in window}
|
||||||
> Outdated: ${isOutdated}
|
> Outdated: ${isOutdated}
|
||||||
> Enabled Plugins:
|
> Enabled Plugins:
|
||||||
${makeCodeblock(Object.keys(plugins).filter(Vencord.Plugins.isPluginEnabled).join(", "))}
|
${makeCodeblock(Object.keys(plugins).filter(Vencord.Plugins.isPluginEnabled).join(", "))}
|
||||||
|
|
Loading…
Reference in a new issue