Removed dev console logs

This commit is contained in:
Julius Gruber
2019-10-18 11:40:08 +02:00
parent 94539cd61d
commit 0aac997238

View File

@@ -372,7 +372,6 @@ export class AuthService {
* Redirect to the route navigated before the login * Redirect to the route navigated before the login
*/ */
public redirectAfterLoginSuccess(isStandalonePage: boolean) { public redirectAfterLoginSuccess(isStandalonePage: boolean) {
console.log('isStandAlonePage: ', isStandalonePage);
this.getRedirectUrl().pipe( this.getRedirectUrl().pipe(
take(1)) take(1))
.subscribe((redirectUrl) => { .subscribe((redirectUrl) => {
@@ -387,14 +386,12 @@ export class AuthService {
this.routeService.getHistory().pipe( this.routeService.getHistory().pipe(
take(1) take(1)
).subscribe((history) => { ).subscribe((history) => {
console.log('HISTORY: ', history);
let redirUrl; let redirUrl;
if (isStandalonePage) { if (isStandalonePage) {
// For standalone login pages, use the previous route. // For standalone login pages, use the previous route.
redirUrl = history[history.length - 2] || ''; redirUrl = history[history.length - 2] || '';
} else { } else {
// console.log('isStandAlonePage: ', isStandalonePage); // console.log('isStandAlonePage: ', isStandalonePage);
console.log( 'history[history.length - 1; ', history[history.length - 1]);
redirUrl = history[history.length - 1] || ''; redirUrl = history[history.length - 1] || '';
} }
this.navigateToRedirectUrl(redirUrl); this.navigateToRedirectUrl(redirUrl);