ShowConnections Open Xbox Connection
Some checks failed
Test / Test (push) Has been cancelled

This commit is contained in:
thororen1234 2025-06-01 10:40:11 -04:00
parent 7a0df3bcf0
commit 88c03c79bc
No known key found for this signature in database

View file

@ -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>