import { enableProdMode } from "@angular/core" ; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic" ; import { AppModule } from "./app.module" ; import { getWebLogger } from "src/web/browser-window/util" ; import { registerNativeThemeReaction } from "src/web/lib/native-theme" ; const logger = getWebLogger ( __filename ) ; registerNativeThemeReaction ( __ELECTRON_EXPOSURE__ ) ; enableProdMode ( ) ; __ELECTRON_EXPOSURE__ . buildIpcMainClient ( ) ( "staticInit" ) ( ) . then ( async ( staticInit ) => { const metadata = staticInit ; Object . defineProperty ( window , "__METADATA__" , { value : metadata , configurable : false , enumerable : false , writable : false , } ) ; return platformBrowserDynamic ( ) . bootstrapModule ( AppModule ) ; } ) . catch ( ( error ) => { console . error ( error ) ; logger . error ( error ) ; throw error ; } ) ;