Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
feat(ui/settings/pages/General): add branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs authored and PalmDevs committed Mar 19, 2024
1 parent e096c5f commit 4683c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export function patchLogHook() {
}

export const versionHash: string = __revengeVersion;
export const branch: string = __revengeBranch;

export function getDebugInfo() {
// Hermes
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/settings/pages/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down

0 comments on commit 4683c4a

Please sign in to comment.