[Init] Async-ify, for future use
This commit is contained in:
parent
91be38564d
commit
88e4f357a4
1 changed files with 28 additions and 23 deletions
|
@ -8,6 +8,8 @@ import initSettings from "@ui/settings";
|
||||||
import { patchLogHook } from "@lib/debug";
|
import { patchLogHook } from "@lib/debug";
|
||||||
|
|
||||||
console.log("Hello from Vendetta!");
|
console.log("Hello from Vendetta!");
|
||||||
|
|
||||||
|
async function init() {
|
||||||
let erroredOnLoad = false;
|
let erroredOnLoad = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -35,3 +37,6 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!erroredOnLoad) logger.log("Vendetta is ready!");
|
if (!erroredOnLoad) logger.log("Vendetta is ready!");
|
||||||
|
};
|
||||||
|
|
||||||
|
init();
|
Loading…
Reference in a new issue