1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

VoiceDownload: fix doing nothing on discord desktop app

This commit is contained in:
Vendicated 2024-05-08 23:49:47 +02:00 committed by Luna
parent e621a43897
commit 0b6190940f

View file

@ -28,9 +28,12 @@ export default definePlugin({
<a
className="vc-voice-download"
href={src}
download="voice-message.ogg"
onClick={e => e.stopPropagation()}
aria-label="Download voice message"
{...IS_DISCORD_DESKTOP
? { target: "_blank" } // open externally
: { download: "voice-message.ogg" } // download directly (not supported on discord desktop)
}
>
<this.Icon />
</a>