mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 02:17:03 -04:00
OpenInApp: Support steam; integrate with SpotifyControls & ShowConnections
This commit is contained in:
parent
e12c0e546c
commit
73354973a3
9 changed files with 149 additions and 19 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue