Revenge/src/entry.ts
2023-10-04 07:01:27 +01:00

18 lines
533 B
TypeScript

import { ClientInfoManager } from "@lib/native";
// This logs in the native logging implementation, e.g. logcat
console.log("Hello from Vendetta!");
// Make 'freeze' and 'seal' do nothing
Object.freeze = Object;
Object.seal = Object;
import(".").then((m) => m.default()).catch((e) => {
console.log(e?.stack ?? e.toString());
alert([
"Failed to load Vendetta!\n",
`Build Number: ${ClientInfoManager.Build}`,
`Vendetta: ${__vendettaVersion}`,
e?.stack || e.toString(),
].join("\n"));
});