From 73354973a37a03fffa5acacd49c9251008efbba8 Mon Sep 17 00:00:00 2001 From: V Date: Thu, 29 Jun 2023 16:06:21 +0200 Subject: OpenInApp: Support steam; integrate with SpotifyControls & ShowConnections --- src/plugins/showConnections/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plugins/showConnections') diff --git a/src/plugins/showConnections/index.tsx b/src/plugins/showConnections/index.tsx index 50fcfe1..404a8db 100644 --- a/src/plugins/showConnections/index.tsx +++ b/src/plugins/showConnections/index.tsx @@ -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} -- cgit