From 4683c4a2525b31dc8569fca726ab94a25d2591e3 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Tue, 19 Mar 2024 08:02:03 +0700 Subject: [PATCH] feat(ui/settings/pages/General): add branch name --- src/lib/debug.ts | 4 +++- src/ui/settings/pages/General.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/debug.ts b/src/lib/debug.ts index f8f5ba88..dd6fffea 100644 --- a/src/lib/debug.ts +++ b/src/lib/debug.ts @@ -75,6 +75,7 @@ export function patchLogHook() { } export const versionHash: string = __revengeVersion; +export const branch: string = __revengeBranch; export function getDebugInfo() { // Hermes @@ -89,7 +90,8 @@ export function getDebugInfo() { return { vendetta: { version: versionHash, - loader: window.__vendetta_loader?.name ?? "Unknown" + loader: window.__vendetta_loader?.name ?? "Unknown", + branch, }, discord: { version: ClientInfoManager.Version, diff --git a/src/ui/settings/pages/General.tsx b/src/ui/settings/pages/General.tsx index f7a36d30..7119f8f9 100644 --- a/src/ui/settings/pages/General.tsx +++ b/src/ui/settings/pages/General.tsx @@ -19,7 +19,7 @@ export default function General() { const versions = [ { label: "Revenge", - version: debugInfo.vendetta.version, + version: `${debugInfo.vendetta.version} (${debugInfo.vendetta.branch})`, icon: "ic_progress_wrench_24px" }, {