fix: Fix multiple bugs with new authentication flow
This commit is contained in:
@@ -2,6 +2,7 @@ import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { register as registerSwiperElements } from 'swiper/element/bundle';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { App } from './app/app';
|
||||
import { getElectronApi } from './app/core/platform/electron/get-electron-api';
|
||||
import { applyMobileSafeAreaDefaults } from './app/infrastructure/mobile/logic/mobile-safe-area.rules';
|
||||
import mermaid from 'mermaid';
|
||||
|
||||
@@ -26,4 +27,15 @@ mermaid.initialize({
|
||||
});
|
||||
|
||||
bootstrapApplication(App, appConfig)
|
||||
.then(async (appRef) => {
|
||||
const api = getElectronApi();
|
||||
|
||||
if (!api?.isPerfDiagEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { bootstrapPerfDiagnostics } = await import('./app/infrastructure/diagnostics/diagnostics.bootstrap');
|
||||
|
||||
await bootstrapPerfDiagnostics(api, appRef.injector);
|
||||
})
|
||||
.catch((err) => console.error(err));
|
||||
|
||||
Reference in New Issue
Block a user