disable service worker

This commit is contained in:
2023-06-24 13:59:01 +02:00
parent 3e8b2c87ae
commit e325cd29a3
2 changed files with 5 additions and 4 deletions

View File

@@ -73,11 +73,10 @@ export class LoginPageComponent implements OnInit {
this.loading = true;
});
this.auth$.googleCredential = response.credential;
console.log(response.credential);
await this.auth$.getAPIToken();
//this.ngZone$.run(() => {
// this.router$.navigate(['/app']);
//});
this.ngZone$.run(() => {
this.router$.navigate(['/app']);
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (e: any) {
console.error('handleCredentialResponse', e);

View File

@@ -41,10 +41,12 @@ bootstrapApplication(AppComponent, {
},
provideAnimations(),
provideHttpClient(withInterceptorsFromDi()),
/*
provideServiceWorker('ngsw-worker.js', {
enabled: !isDevMode(),
registrationStrategy: 'registerWhenStable:30000'
})
*/
]
})
.catch(err => console.error(err));