Update avatar URL logic for console entries
Replaced the hardcoded console image path with a specific UUID. This ensures a consistent format when constructing avatar URLs and improves maintainability.
This commit is contained in:
parent
ecee377f01
commit
f53fc9746e
|
|
@ -119,7 +119,7 @@ export class HistoryComponent implements OnInit, OnChanges {
|
|||
public getAvatarUrl(entry: string): string {
|
||||
let uuid = entry.replace('-', '');
|
||||
if (uuid === 'C') {
|
||||
return '/public/img/random/console.png';
|
||||
uuid = "f78a4d8dd51b4b3998a3230f2de0c670"
|
||||
}
|
||||
return `https://crafatar.com/avatars/${uuid}?size=25&overlay`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user