mirror of
https://github.com/movie-web/movie-web.git
synced 2025-03-04 09:55:24 +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" />
|
<StyleTrans k="player.menus.downloads.hlsDisclaimer" />
|
||||||
</Menu.Paragraph>
|
</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")}
|
{t("player.menus.downloads.downloadPlaylist")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user