Created
May 3, 2018 17:14
-
-
Save sliceofbytes/26922880274ec139486714928ce16339 to your computer and use it in GitHub Desktop.
Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './polyfills.ts'; | |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
import { enableProdMode } from '@angular/core'; | |
import { environment } from './environments/environment'; | |
import { AppModule } from './app/'; | |
if (environment.production) { | |
enableProdMode(); | |
} | |
platformBrowserDynamic().bootstrapModule(AppModule).then(() => { | |
if ('serviceWorker' in navigator && environment.production) { | |
navigator.serviceWorker.register('/ngsw-worker.js'); | |
} | |
}).catch(err => console.log(err)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment