VoiceDownload: fix doing nothing on discord desktop app

main
Vendicated 6 months ago
parent b1cc67a860
commit 025193533d
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

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

Loading…
Cancel
Save