Check app updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { enableProdMode, LOCALE_ID, isDevMode, importProvidersFrom } from '@angular/core';
|
||||
import { environment } from './environments/environment';
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||
import { provideServiceWorker } from '@angular/service-worker';
|
||||
import { provideAnimations } from '@angular/platform-browser/animations';
|
||||
import { AppRoutingModule } from './app/app-routing.module';
|
||||
import { BrowserModule, bootstrapApplication } from '@angular/platform-browser';
|
||||
@@ -16,18 +16,15 @@ import { registerLocaleData } from '@angular/common';
|
||||
registerLocaleData(localePl);
|
||||
|
||||
if (environment.production) {
|
||||
enableProdMode();
|
||||
enableProdMode();
|
||||
}
|
||||
|
||||
bootstrapApplication(AppComponent, {
|
||||
providers: [
|
||||
importProvidersFrom(BrowserModule, AppRoutingModule, ServiceWorkerModule.register('ngsw-worker.js', {
|
||||
enabled: !isDevMode(),
|
||||
// Register the ServiceWorker as soon as the application is stable
|
||||
// or after 30 seconds (whichever comes first).
|
||||
registrationStrategy: 'registerWhenStable:30000'
|
||||
}),
|
||||
MatBottomSheetModule),
|
||||
importProvidersFrom(
|
||||
BrowserModule,
|
||||
AppRoutingModule,
|
||||
MatBottomSheetModule),
|
||||
{ provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS] },
|
||||
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } },
|
||||
{ provide: LOCALE_ID, useValue: 'pl' },
|
||||
@@ -42,7 +39,11 @@ bootstrapApplication(AppComponent, {
|
||||
multi: true
|
||||
},
|
||||
provideAnimations(),
|
||||
provideHttpClient(withInterceptorsFromDi())
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideServiceWorker('ngsw-worker.js', {
|
||||
enabled: !isDevMode(),
|
||||
registrationStrategy: 'registerWhenStable:30000'
|
||||
})
|
||||
]
|
||||
})
|
||||
.catch(err => console.error(err));
|
||||
.catch(err => console.error(err));
|
||||
|
||||
Reference in New Issue
Block a user