diff --git a/frontend/main.ts b/frontend/main.ts index 5d207f1f..977b5c1e 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -1,16 +1,10 @@ import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; -import {ApplicationRef, enableProdMode} from '@angular/core'; +import {enableProdMode} from '@angular/core'; import {environment} from './environments/environment'; import {AppModule} from './app/app.module'; -import {enableDebugTools} from '@angular/platform-browser'; if (environment.production) { enableProdMode(); -} +} -platformBrowserDynamic().bootstrapModule(AppModule).then(moduleRef => { - const applicationRef = moduleRef.injector.get(ApplicationRef); - const componentRef = applicationRef.components[0]; - // allows to run `ng.profiler.timeChangeDetection();` - enableDebugTools(componentRef); -}).catch(err => console.error(err)); +platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err)); diff --git a/package.json b/package.json index d912e54b..9ca72b15 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "main": "./backend/index.js", "bin": "./backend/index.js", "scripts": { - "installx": "tsc && gulp build-prod", + "install": "tsc && gulp build-prod", "build-release": "gulp build-release", "build-backend": "tsc", "pretest": "tsc",