From f3e304d2bc75815bdb13250761757c50299a1448 Mon Sep 17 00:00:00 2001 From: Fedor Katurov <gotham48@gmail.com> Date: Wed, 27 Nov 2019 10:48:41 +0700 Subject: [PATCH] fixed youtube preview --- src/utils/dom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dom.ts b/src/utils/dom.ts index 2405122c..e1e48bfd 100644 --- a/src/utils/dom.ts +++ b/src/utils/dom.ts @@ -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; };