From a9ec9124ae5d91ec11cf9140a1a0d1946878e70a Mon Sep 17 00:00:00 2001 From: Aleksei Potsetsuev Date: Fri, 24 May 2024 19:17:09 +0800 Subject: [PATCH] CB-4812 feat: add app restart hook --- webapp/packages/core-bootstrap/src/bootstrap.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/packages/core-bootstrap/src/bootstrap.ts b/webapp/packages/core-bootstrap/src/bootstrap.ts index b9180d13ab..5eaebd5029 100644 --- a/webapp/packages/core-bootstrap/src/bootstrap.ts +++ b/webapp/packages/core-bootstrap/src/bootstrap.ts @@ -16,6 +16,7 @@ export async function bootstrap(plugins: PluginManifest[]): Promise { configure({ enforceActions: 'never' }); const app = new App([...coreManifests, ...plugins]); + (window as any).internalRestartApp = () => app.restart(); let exception: Error | null = null; try {