fix(entry): await core init & unawait plugins init
This commit is contained in:
parent
43b2462e81
commit
3ed0f777a0
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue