18 lines
465 B
TypeScript
18 lines
465 B
TypeScript
|
import patcher from "@lib/patcher";
|
||
|
import logger from "@lib/logger";
|
||
|
import * as metro from "@metro/filters";
|
||
|
import * as common from "@metro/common";
|
||
|
|
||
|
console.log("Hello from Vendetta!");
|
||
|
|
||
|
try {
|
||
|
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()}`);
|
||
|
}
|