mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 05:42:55 -04:00
This commit is contained in:
parent
7a0df3bcf0
commit
88c03c79bc
1 changed files with 7 additions and 1 deletions
|
@ -151,7 +151,13 @@ function CompactConnectionComponent({ connection, theme }: { connection: Connect
|
||||||
: <button
|
: <button
|
||||||
{...tooltipProps}
|
{...tooltipProps}
|
||||||
className="vc-user-connection"
|
className="vc-user-connection"
|
||||||
onClick={() => copyWithToast(connection.name)}
|
onClick={() => {
|
||||||
|
if (connection.type === "xbox") {
|
||||||
|
VencordNative.native.openExternal(`https://www.xbox.com/en-US/play/user/${encodeURIComponent(connection.name)}`);
|
||||||
|
} else {
|
||||||
|
copyWithToast(connection.name);
|
||||||
|
}
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{img}
|
{img}
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue