fix(entry): await core init & unawait plugins init

This commit is contained in:
amsyarasyiq 2024-06-14 18:22:27 +08:00
parent 43b2462e81
commit 3ed0f777a0
2 changed files with 2 additions and 3 deletions

View file

@ -18,8 +18,7 @@ async function initializeBunny() {
Object.freeze = Object.seal = Object;
await require("@metro/caches").initMetroCache();
require(".").default();
await require(".").default();
} catch (e) {
const { ClientInfoManager } = require("@lib/api/native/modules");
const stack = e instanceof Error ? e.stack : undefined;

View file

@ -57,7 +57,7 @@ export default async () => {
window.bunny = lib;
// Once done, load plugins
lib.unload.push(await initPlugins());
initPlugins().then(u => lib.unload.push(u));
// Update the fonts
updateFonts();