diff --git a/src/main/index.ts b/src/main/index.ts index f6c0b1bbc0..7bbd8a906e 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -62,6 +62,7 @@ import hotbarStoreInjectable from "../common/hotbar-store.injectable"; import applicationMenuItemsInjectable from "./menu/application-menu-items.injectable"; import type { DiContainer } from "@ogre-tools/injectable"; import { init } from "@sentry/electron/main"; +import { runSetups } from "../common/setupable-injection-token/run-setups"; async function main(di: DiContainer) { app.setName(appName); @@ -70,7 +71,7 @@ async function main(di: DiContainer) { * Note: this MUST be called before electron's "ready" event has been emitted. */ initializeSentryReporting(init); - await di.runSetups(); + await runSetups(di); await app.whenReady(); injectSystemCAs(); diff --git a/src/renderer/bootstrap.tsx b/src/renderer/bootstrap.tsx index 66a6600d5a..7e5a6ea548 100644 --- a/src/renderer/bootstrap.tsx +++ b/src/renderer/bootstrap.tsx @@ -43,6 +43,7 @@ import hotbarStoreInjectable from "../common/hotbar-store.injectable"; import { bindEvents } from "./navigation/events"; import deleteClusterDialogModelInjectable from "./components/delete-cluster-dialog/delete-cluster-dialog-model/delete-cluster-dialog-model.injectable"; import { init } from "@sentry/electron/renderer"; +import { runSetups } from "../common/setupable-injection-token/run-setups"; configurePackages(); // global packages registerCustomThemes(); // monaco editor themes @@ -63,7 +64,7 @@ export async function bootstrap(di: DiContainer) { initializeSentryReporting(init); } - await di.runSetups(); + await runSetups(di); // TODO: Consolidate import time side-effect to setup time bindEvents();