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:
DuckieTM
2026-06-18 12:29:46 +02:00
committed by GitHub
+1 -1
View File
@@ -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');
} }