Skip to content

Commit

Permalink
adjust startup
Browse files Browse the repository at this point in the history
  • Loading branch information
manfredsteyer committed May 18, 2021
1 parent 00e6f86 commit b324fb0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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));

0 comments on commit b324fb0

Please sign in to comment.