mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-11 02:16:23 +00:00
fix(memberListActivities): prefer application icons
This commit is contained in:
parent
12ae29c389
commit
d656aa7119
1 changed files with 6 additions and 2 deletions
|
@ -167,8 +167,12 @@ export default definePlugin({
|
|||
}
|
||||
|
||||
if (application) {
|
||||
const src = platform === "xbox" && application.icon === null ? xboxUrl : `https://cdn.discordapp.com/app-icons/${application.id}/${application.icon}.png`;
|
||||
icons.push(<img src={src} alt={application.name}/>);
|
||||
if (application.icon) {
|
||||
const src = `https://cdn.discordapp.com/app-icons/${application.id}/${application.icon}.png`;
|
||||
icons.push(<img src={src} alt={application.name} />);
|
||||
} else if (platform === "xbox") {
|
||||
icons.push(<img src={xboxUrl} alt="Xbox" />);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (platform === "xbox") {
|
||||
|
|
Loading…
Reference in a new issue