optimising and making it better

This commit is contained in:
sdarbinyan
2026-02-26 21:54:21 +04:00
parent 7a00a8f1e3
commit 10b4974719
58 changed files with 318 additions and 1804 deletions

View File

@@ -43,7 +43,8 @@ export class App implements OnInit {
takeUntilDestroyed(this.destroyRef)
)
.subscribe((event) => {
const url = (event as NavigationEnd).urlAfterRedirects || (event as NavigationEnd).url;
const navEnd = event as NavigationEnd;
const url = navEnd.urlAfterRedirects || navEnd.url;
this.isHomePage.set(url === '/' || url === '/home' || url === '');
});
}