diff --git a/src/entry.ts b/src/entry.ts index d7a7552..f1e10e0 100644 --- a/src/entry.ts +++ b/src/entry.ts @@ -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; diff --git a/src/index.ts b/src/index.ts index a415f69..19fe5fd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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();