diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/app.module.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 98dec4244..f790a6848 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -1,7 +1,9 @@ | |||
1 | import 'focus-visible' | 1 | import 'focus-visible' |
2 | import { environment } from 'src/environments/environment' | ||
2 | import { APP_BASE_HREF, registerLocaleData } from '@angular/common' | 3 | import { APP_BASE_HREF, registerLocaleData } from '@angular/common' |
3 | import { NgModule } from '@angular/core' | 4 | import { NgModule } from '@angular/core' |
4 | import { BrowserModule } from '@angular/platform-browser' | 5 | import { BrowserModule } from '@angular/platform-browser' |
6 | import { ServiceWorkerModule } from '@angular/service-worker' | ||
5 | import { ServerService } from '@app/core' | 7 | import { ServerService } from '@app/core' |
6 | import localeOc from '@app/helpers/locales/oc' | 8 | import localeOc from '@app/helpers/locales/oc' |
7 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | 9 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
@@ -11,7 +13,7 @@ import { CoreModule } from './core' | |||
11 | import { EmptyComponent } from './empty.component' | 13 | import { EmptyComponent } from './empty.component' |
12 | import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' | 14 | import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' |
13 | import { HighlightPipe } from './header/highlight.pipe' | 15 | import { HighlightPipe } from './header/highlight.pipe' |
14 | import { NotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' | 16 | import { LanguageChooserComponent, MenuComponent, NotificationComponent } from './menu' |
15 | import { ConfirmComponent } from './modal/confirm.component' | 17 | import { ConfirmComponent } from './modal/confirm.component' |
16 | import { CustomModalComponent } from './modal/custom-modal.component' | 18 | import { CustomModalComponent } from './modal/custom-modal.component' |
17 | import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component' | 19 | import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component' |
@@ -49,6 +51,7 @@ registerLocaleData(localeOc, 'oc') | |||
49 | 51 | ||
50 | imports: [ | 52 | imports: [ |
51 | BrowserModule, | 53 | BrowserModule, |
54 | ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), | ||
52 | 55 | ||
53 | CoreModule, | 56 | CoreModule, |
54 | SharedMainModule, | 57 | SharedMainModule, |