remove 404 check in demo shell

This commit is contained in:
Eugenio Romano 2018-06-22 09:56:52 +01:00
parent 9b2d51dbd5
commit 9ee34e404e

View File

@ -38,10 +38,7 @@ export class AppComponent implements OnInit {
this.pageTitleService.setTitle('title'); this.pageTitleService.setTitle('title');
this.alfrescoApiService.getInstance().on('error', (error) => { this.alfrescoApiService.getInstance().on('error', (error) => {
if (error.status === 401) {
if (error.status === 404) {
this.router.navigate(['/error', error.status]);
} else if (error.status === 401) {
if (!this.authenticationService.isLoggedIn()) { if (!this.authenticationService.isLoggedIn()) {
this.router.navigate(['/login']); this.router.navigate(['/login']);
} }