#17 YouTube 対応(修正)

このコミットが含まれているのは:
2025-08-25 23:48:46 +09:00
コミット 199783a6d4
+1 -1
ファイルの表示
@@ -27,7 +27,7 @@ export default (({ post }: Props) => {
return <TwitterEmbed userId={userId} statusId={statusId}/>
case 'youtube.com':
{
const [videoId] = url.pathname.match (/(?<=\/watch\?v\=)[a-zA-Z0-9]+?(?=\/|$|&)/)!
const videoId = url.searchParams.get ('v')!
return (
<YoutubeEmbed videoId={videoId} opts={{ playerVars: {
playsinline: 1,