mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update embeds
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user