chore!: rename __vendettaVersion constant to __revengeVersion

This commit is contained in:
PalmDevs 2024-02-09 02:04:56 +07:00
parent e5d834fdbc
commit 094ff7c879
No known key found for this signature in database
GPG key ID: ADC432EE981495A3
4 changed files with 4 additions and 5 deletions

View file

@ -44,8 +44,7 @@ try {
alias(aliases),
],
define: {
// TODO: Rename this property
__vendettaVersion: `"${commit}"`,
__revengeVersion: `"${commit}"`,
},
footer: {
js: "//# sourceURL=Revenge",

2
src/def.d.ts vendored
View file

@ -511,7 +511,7 @@ interface VendettaPluginObject {
declare global {
type React = typeof _React;
const __vendettaVersion: string;
const __revengeVersion: string;
interface Window {
[key: Exclude<PropertyKey, number>]: any;

View file

@ -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"));
});

View file

@ -59,7 +59,7 @@ export function patchLogHook() {
}
}
export const versionHash: string = __vendettaVersion;
export const versionHash: string = __revengeVersion;
export function getDebugInfo() {
// Hermes