Fixed bug in previous bugfix Part II - Electric Bogaloo

This commit is contained in:
grimsi
2022-08-15 17:45:19 +02:00
parent e0550de34d
commit d6a4a5f5d9
@@ -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 {