Commit 6b7ce756 by Arjun

ts fix

parent 02813e62
......@@ -46,10 +46,6 @@ export class AppComponent {
sec_active5 = false;
sec_active6 = false;
state: boolean;
// Customer Info
// user: User;
menuw: number;
userData: any;
tabData = true;
......@@ -72,9 +68,6 @@ export class AppComponent {
private location: Location,
private events: Events
) {
setInterval(() => {
console.log(window.location.href);
}, 1000);
this.state = true;
this.initializeApp();
this.subjectService.getLoginData().subscribe(loginData => {
......@@ -146,9 +139,7 @@ export class AppComponent {
'review'
];
const currentUrl = this.router.url.split('/');
console.log(currentUrl);
const index = restrictedUrl.findIndex(x => x === currentUrl[1]);
// console.log(currentUrl[1], index, this.state);
if (index > -1 || this.tabData === false) {
return true;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment