Revenge/src/index.ts

21 lines
528 B
TypeScript
Raw Normal View History

2022-10-18 22:04:55 +00:00
import patcher from "@lib/patcher";
import logger from "@lib/logger";
import * as metro from "@metro/filters";
import * as common from "@metro/common";
import initSettings from "./ui/settings";
2022-10-18 22:04:55 +00:00
console.log("Hello from Vendetta!");
try {
initSettings();
2022-10-18 22:04:55 +00:00
window.vendetta = {
patcher: patcher,
metro: { ...metro, common: common },
logger: logger,
};
logger.log("Vendetta is ready!");
} catch (e: Error | any) {
alert(`Vendetta failed to initialize...\n${e.stack || e.toString()}`);
}