Skip to content

Commit

Permalink
Adiciona método getActualRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcosatc147 committed Nov 30, 2023
1 parent 5538a22 commit d1f719a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/components/background/background.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { AppComponent } from 'src/app/app.component';
export class BackgroundComponent implements OnInit {
items: MenuItem[] = [];
mobileDevide: boolean = true;
isLoginPage: boolean = false;

constructor() {}

Expand All @@ -23,7 +22,6 @@ export class BackgroundComponent implements OnInit {
},
];
this.identifiesUserDevice();
this.getActiveRoute();
}

identifiesUserDevice(): void {
Expand All @@ -40,7 +38,7 @@ export class BackgroundComponent implements OnInit {
this.mobileDevide = false;
}
}
getActiveRoute(): boolean {
return window.location.pathname === '/login';
getActualRoute(): string {
return window.location.pathname;
}
}

0 comments on commit d1f719a

Please sign in to comment.