OpenInApp: Support steam; integrate with SpotifyControls & ShowConnections

This commit is contained in:
V 2023-06-29 16:06:21 +02:00
parent e12c0e546c
commit 73354973a3
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
9 changed files with 149 additions and 19 deletions

View file

@ -147,6 +147,13 @@ function CompactConnectionComponent({ connection, theme }: { connection: Connect
className="vc-user-connection"
href={url}
target="_blank"
onClick={e => {
if (Vencord.Plugins.isPluginEnabled("OpenInApp")) {
const OpenInApp = Vencord.Plugins.plugins.OpenInApp as any as typeof import("../openInApp").default;
// handleLink will .preventDefault() if applicable
OpenInApp.handleLink(e.currentTarget, e);
}
}}
>
{img}
</a>