Revenge/src/index.ts
Amsyar Rasyiq 20310db733
[Themes] Implement chat background image (#64)
* [Themes] hardcode fuyu chat bg

* [Themes > BG] listen to theme file

* remove .apply()

* some uhh misc changes

* readd

* how

* [Global] Minor changes

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-04-15 17:08:08 +01:00

34 lines
997 B
TypeScript

import { patchLogHook } from "@lib/debug";
import { patchCommands } from "@lib/commands";
import { initPlugins } from "@lib/plugins";
import { patchAssets } from "@ui/assets";
import { patchChatBackground } from "@lib/themes";
import initQuickInstall from "@ui/quickInstall";
import initSafeMode from "@ui/safeMode";
import initSettings from "@ui/settings";
import initFixes from "@lib/fixes";
import logger from "@lib/logger";
import windowObject from "@lib/windowObject";
export default async () => {
// Load everything in parallel
const unloads = await Promise.all([
patchLogHook(),
patchAssets(),
patchCommands(),
patchChatBackground(),
initFixes(),
initSafeMode(),
initSettings(),
initQuickInstall(),
]);
// Assign window object
window.vendetta = await windowObject(unloads);
// Once done, load plugins
unloads.push(await initPlugins());
// We good :)
logger.log("Vendetta is ready!");
}