|
|
@ -28,9 +28,12 @@ export default definePlugin({
|
|
|
|
<a
|
|
|
|
<a
|
|
|
|
className="vc-voice-download"
|
|
|
|
className="vc-voice-download"
|
|
|
|
href={src}
|
|
|
|
href={src}
|
|
|
|
download="voice-message.ogg"
|
|
|
|
|
|
|
|
onClick={e => e.stopPropagation()}
|
|
|
|
onClick={e => e.stopPropagation()}
|
|
|
|
aria-label="Download voice message"
|
|
|
|
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 />
|
|
|
|
<this.Icon />
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|