Skip to content

Commit

Permalink
CB-4812 feat: add app restart hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed May 24, 2024
1 parent 15e5574 commit a9ec912
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/packages/core-bootstrap/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export async function bootstrap(plugins: PluginManifest[]): Promise<App> {
configure({ enforceActions: 'never' });

const app = new App([...coreManifests, ...plugins]);
(window as any).internalRestartApp = () => app.restart();
let exception: Error | null = null;

try {
Expand Down

0 comments on commit a9ec912

Please sign in to comment.