fix legacy service-worker issue
This commit is contained in:
@@ -33,6 +33,7 @@ import {
|
||||
MAT_DATE_LOCALE,
|
||||
} from '@angular/material/core';
|
||||
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
||||
import { provideServiceWorker } from '@angular/service-worker';
|
||||
import { de } from 'date-fns/locale';
|
||||
import { routes } from './app.routes';
|
||||
import { initializeApi } from './util/api';
|
||||
@@ -88,5 +89,9 @@ export const appConfig: ApplicationConfig = {
|
||||
},
|
||||
{ provide: MAT_DATE_FORMATS, useValue: MAT_DATE_FNS_FORMATS },
|
||||
{ provide: MAT_DATE_LOCALE, useValue: de },
|
||||
provideServiceWorker('ngsw-worker.js', {
|
||||
enabled: !isDevMode(),
|
||||
registrationStrategy: 'registerWhenStable:30000',
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,19 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta name="robots" content="noindex,follow" />
|
||||
<meta charset="utf-8" />
|
||||
<title>1.TC Chemnitz Mitgliederdatenbank</title>
|
||||
<base href="/" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
<head>
|
||||
<meta name="robots" content="noindex,follow" />
|
||||
<meta charset="utf-8" />
|
||||
<title>1.TC Chemnitz Mitgliederdatenbank</title>
|
||||
<base href="/" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
|
||||
rel="stylesheet" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||
rel="stylesheet" />
|
||||
<link rel="manifest" href="manifest.webmanifest" />
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
<noscript
|
||||
>Please enable JavaScript to continue using this
|
||||
application.</noscript
|
||||
>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user