update embeds

This commit is contained in:
plebeius.eth
2024-04-10 11:55:16 +02:00
parent 2e896ff3d2
commit 9ae351cbe1
2 changed files with 4 additions and 4 deletions
-2
View File
@@ -30,8 +30,6 @@ const getYouTubeVideoId = (url: URL): string | null => {
return url.pathname.slice(1);
} else if (url.searchParams.has('v')) {
return url.searchParams.get('v');
} else if (url.host.startsWith('yt.')) {
return url.searchParams.get('v');
}
return null;
};