From 63613e58f21432b5318f3b837c5ad8b183e46feb Mon Sep 17 00:00:00 2001 From: srgooglo Date: Tue, 31 May 2022 01:09:36 +0200 Subject: [PATCH] fix cores initialization --- packages/app/src/App.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx index f48bf090..90c4e727 100644 --- a/packages/app/src/App.jsx +++ b/packages/app/src/App.jsx @@ -298,7 +298,7 @@ class App extends React.Component { const initializationTasks = [ async () => { try { - await app.ApiController.attachAPIConnection() + await this.props.cores.ApiCore.attachAPIConnection() app.eventBus.emit("app.initialization.api_success") } catch (error) { @@ -357,8 +357,8 @@ class App extends React.Component { await Promise.tasked(initializationTasks).catch((reason) => { console.error(`[App] Initialization failed: ${reason.cause}`) app.eventBus.emit("runtime.crash", { - message: `App initialization failed`, - details: reason.cause, + message: `App initialization failed (${reason.cause})`, + details: reason.details, }) }) } @@ -384,7 +384,7 @@ class App extends React.Component { return false } - await app.ApiController.attachWSConnection() + await this.props.cores.ApiCore.attachWSConnection() } __UserInit = async () => {