Fixed oopsie on equicord-debug (#569)
* Reformated client detection * no more export * formatting * Fixed equicord-debug (oopsie) * Fixed oopsie * Update supportHelper.tsx * updates * Update utils.tsx --------- Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
parent
7d9f17f67b
commit
994f05cad9
2 changed files with 6 additions and 2 deletions
|
|
@ -112,6 +112,7 @@ export function getWindowsName(release: string) {
|
|||
|
||||
export function getMacOSName(release: string) {
|
||||
const major = parseInt(release.split(".")[0]);
|
||||
if (major === 25) return "MacOS 26 (Tahoe)";
|
||||
if (major === 24) return "MacOS 15 (Sequoia)";
|
||||
if (major === 23) return "MacOS 14 (Sonoma)";
|
||||
if (major === 22) return "MacOS 13 (Ventura)";
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ async function forceUpdate() {
|
|||
export function detectClient(): clientData {
|
||||
if (IS_DISCORD_DESKTOP) {
|
||||
return {
|
||||
name: "Discord",
|
||||
name: "Discord Desktop",
|
||||
version: DiscordNative.app.getVersion(),
|
||||
};
|
||||
}
|
||||
|
|
@ -132,7 +132,10 @@ async function generateDebugInfoMessage() {
|
|||
const { RELEASE_CHANNEL } = window.GLOBAL_ENV;
|
||||
|
||||
const clientInfo = detectClient();
|
||||
const clientString = `${clientInfo.name} ${clientInfo.version ? "" : `v${clientInfo.version}`} ${clientInfo.info ? "" : `• ${clientInfo.info}`}`;
|
||||
let clientString = `${clientInfo.name}`;
|
||||
clientString += `${clientInfo.version ? ` v${clientInfo.version}` : ""}`;
|
||||
clientString += `${clientInfo.info ? ` • ${clientInfo.info}` : ""}`;
|
||||
clientString += `${clientInfo.shortHash ? ` • [${clientInfo.shortHash}](${clientInfo.hash})` : ""}`;
|
||||
|
||||
const spoofInfo = IS_EQUIBOP ? tryOrElse(() => VesktopNative.app.getPlatformSpoofInfo?.(), null) : null;
|
||||
const platformDisplay = spoofInfo?.spoofed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue