diff --git a/build.mjs b/build.mjs index 170570e8..9e123b67 100644 --- a/build.mjs +++ b/build.mjs @@ -44,8 +44,7 @@ try { alias(aliases), ], define: { - // TODO: Rename this property - __vendettaVersion: `"${commit}"`, + __revengeVersion: `"${commit}"`, }, footer: { js: "//# sourceURL=Revenge", diff --git a/src/def.d.ts b/src/def.d.ts index e9fb06ea..12c61526 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -511,7 +511,7 @@ interface VendettaPluginObject { declare global { type React = typeof _React; - const __vendettaVersion: string; + const __revengeVersion: string; interface Window { [key: Exclude]: any; diff --git a/src/entry.ts b/src/entry.ts index a8fc18f0..c5ffe2b5 100644 --- a/src/entry.ts +++ b/src/entry.ts @@ -13,7 +13,7 @@ import(".").then((m) => m.default()).catch((e) => { "Failed to load Revenge!\n", `Build Number: ${ClientInfoManager.Build}`, // TODO: Rename this - `Revenge: ${__vendettaVersion}`, + `Revenge: ${__revengeVersion}`, e?.stack || e.toString(), ].join("\n")); }); diff --git a/src/lib/debug.ts b/src/lib/debug.ts index 1bb6521b..31e021cb 100644 --- a/src/lib/debug.ts +++ b/src/lib/debug.ts @@ -59,7 +59,7 @@ export function patchLogHook() { } } -export const versionHash: string = __vendettaVersion; +export const versionHash: string = __revengeVersion; export function getDebugInfo() { // Hermes