From b324fb0108972ceb1cd212e589cd40287fa7d2b6 Mon Sep 17 00:00:00 2001 From: Manfred Steyer Date: Tue, 18 May 2021 19:31:05 +0200 Subject: [PATCH] adjust startup --- src/bootstrap.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bootstrap.ts b/src/bootstrap.ts index 1e16888..5293319 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -4,10 +4,6 @@ import { platformBrowser } from '@angular/platform-browser'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; -if (environment.production) { - enableProdMode(); -} - // platformBrowser().bootstrapModule(AppModule) // .catch(err => console.error(err)); @@ -18,6 +14,11 @@ let platform = (window as any).plattform[ngVersion]; if (!platform) { platform = platformBrowser(); (window as any).plattform[ngVersion] = platform; + + if (environment.production) { + enableProdMode(); + } + } platform.bootstrapModule(AppModule) .catch(err => console.error(err)); \ No newline at end of file