diff --git a/frontend/src/app/components/header/header.component.ts b/frontend/src/app/components/header/header.component.ts index aafe9c6..71b017a 100644 --- a/frontend/src/app/components/header/header.component.ts +++ b/frontend/src/app/components/header/header.component.ts @@ -1,11 +1,11 @@ -import {Component, Inject} from '@angular/core'; +import {Component} from '@angular/core'; import {LibraryService} from "../../services/library.service"; import {MatSnackBar} from '@angular/material/snack-bar'; import {timeInterval} from "rxjs"; import {Router} from "@angular/router"; import {GamesService} from "../../services/games.service"; import {ThemingService} from "../../services/theming.service"; -import {DOCUMENT, Location} from '@angular/common'; +import {Location} from '@angular/common'; @Component({ selector: 'app-header', @@ -51,7 +51,7 @@ export class HeaderComponent { } onLibraryScreen(): boolean { - return this.router.url.startsWith("/library&") || this.router.url === "/library"; + return this.router.url.startsWith("/library?") || this.router.url === "/library"; } onLibraryManagementScreen(): boolean {