Revenge/entry.js

18 lines
584 B
JavaScript
Raw Normal View History

// This logs in the native logging implementation, e.g. logcat
console.log("Hello from Vendetta!");
(async () => {
try {
await (await import("./src/index.ts")).default();
} catch (ex) {
2023-03-31 14:46:55 +00:00
console.log(ex?.stack ?? ex.toString());
const dialog = [
"Failed to load Vendetta!\n",
2023-03-31 14:46:55 +00:00
`Build Number: ${(nativeModuleProxy.InfoDictionaryManager ?? nativeModuleProxy.RTNClientInfoManager).Build}`,
`Vendetta: ${__vendettaVersion}`,
ex?.stack || ex.toString(),
].join("\n");
alert(dialog);
}
2023-03-31 14:46:55 +00:00
})();