mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
Merge pull request #255 from simoleo89/fix/ui-bug-sweep
fix(youtube): interpolate videoId in the share-to-X tweet text
This commit is contained in:
@@ -637,7 +637,7 @@ export const YouTubePlayerView: FC<{}> = () =>
|
|||||||
if (videoId)
|
if (videoId)
|
||||||
{
|
{
|
||||||
const url = `https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
const url = `https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
||||||
'Now watching: https://youtube.com/watch?v=${videoId}',
|
`Now watching: https://youtube.com/watch?v=${videoId}`,
|
||||||
)}`;
|
)}`;
|
||||||
window.open(url, '_blank', 'noopener,noreferrer');
|
window.open(url, '_blank', 'noopener,noreferrer');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user