disable service worker
This commit is contained in:
@@ -73,11 +73,10 @@ export class LoginPageComponent implements OnInit {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
});
|
});
|
||||||
this.auth$.googleCredential = response.credential;
|
this.auth$.googleCredential = response.credential;
|
||||||
console.log(response.credential);
|
|
||||||
await this.auth$.getAPIToken();
|
await this.auth$.getAPIToken();
|
||||||
//this.ngZone$.run(() => {
|
this.ngZone$.run(() => {
|
||||||
// this.router$.navigate(['/app']);
|
this.router$.navigate(['/app']);
|
||||||
//});
|
});
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error('handleCredentialResponse', e);
|
console.error('handleCredentialResponse', e);
|
||||||
|
|||||||
@@ -41,10 +41,12 @@ bootstrapApplication(AppComponent, {
|
|||||||
},
|
},
|
||||||
provideAnimations(),
|
provideAnimations(),
|
||||||
provideHttpClient(withInterceptorsFromDi()),
|
provideHttpClient(withInterceptorsFromDi()),
|
||||||
|
/*
|
||||||
provideServiceWorker('ngsw-worker.js', {
|
provideServiceWorker('ngsw-worker.js', {
|
||||||
enabled: !isDevMode(),
|
enabled: !isDevMode(),
|
||||||
registrationStrategy: 'registerWhenStable:30000'
|
registrationStrategy: 'registerWhenStable:30000'
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
|
|||||||
Reference in New Issue
Block a user