mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-14 07:55:07 +01:00
Copy playlist link instead of download playlist
This commit is contained in:
parent
a562cbeb25
commit
71ddbca657
@ -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 New Issue
Block a user