mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed youtube preview
This commit is contained in:
parent
45f7c70f83
commit
f3e304d2bc
1 changed files with 1 additions and 1 deletions
|
@ -146,5 +146,5 @@ export const getYoutubeThumb = (url: string) => {
|
|||
/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]*)(&(amp;)?[\w\?=]*)?/
|
||||
);
|
||||
|
||||
return match && match[1] ? `https://i.ytimg.com/vi/${match[1]}/hq720.jpg` : null;
|
||||
return match && match[1] ? `https://i.ytimg.com/vi/${match[1]}/hqdefault.jpg` : null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue