1
0
Fork 0
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:
Fedor Katurov 2019-11-27 10:48:41 +07:00
parent 45f7c70f83
commit f3e304d2bc

View file

@ -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;
};