mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +01:00
Copy playlist link instead of download playlist
This commit is contained in:
parent
a562cbeb25
commit
71ddbca657
1 changed files with 11 additions and 1 deletions
|
@ -69,7 +69,17 @@ export function DownloadView({ id }: { id: string }) {
|
|||
<StyleTrans k="player.menus.downloads.hlsDisclaimer" />
|
||||
</Menu.Paragraph>
|
||||
|
||||
<Button className="w-full" href={downloadUrl} theme="purple">
|
||||
<Button
|
||||
className="w-full"
|
||||
theme="purple"
|
||||
href={downloadUrl}
|
||||
onClick={(event) => {
|
||||
// Allow context menu & left click to copy
|
||||
event.preventDefault();
|
||||
|
||||
navigator.clipboard.writeText(downloadUrl);
|
||||
}}
|
||||
>
|
||||
{t("player.menus.downloads.downloadPlaylist")}
|
||||
</Button>
|
||||
<Button
|
||||
|
|
Loading…
Reference in a new issue