fix(console): header image fallback (#3735)

fix: fallback icon in header

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Max Peintner
2022-05-31 07:14:52 +00:00
committed by GitHub
co-authored by Livio Amstutz
parent f9e9b4b64b
commit 47feced1cb
2 changed files with 8 additions and 4 deletions
@@ -67,6 +67,10 @@ export class HeaderComponent implements OnDestroy {
return this.router.url === '/users/me';
}
public errorHandler(event: any, fallbackSrc: string) {
(event.target as HTMLImageElement).src = fallbackSrc;
}
public get isOnInstance(): boolean {
const pages: string[] = [
'/instance',