From 5bb60d7d7856c9d7b5349f6cc9b41f25845b08cc Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Tue, 29 Nov 2022 11:00:44 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20Youtube=E3=81=AE=E3=82=B5=E3=83=A0?= =?UTF-8?q?=E3=83=8D=E3=82=A4=E3=83=AB=E3=82=92=E5=8F=8D=E6=98=A0=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser/websocket/makeChanges.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/websocket/makeChanges.ts b/browser/websocket/makeChanges.ts index 392d2af..65850f8 100644 --- a/browser/websocket/makeChanges.ts +++ b/browser/websocket/makeChanges.ts @@ -96,7 +96,8 @@ const findLinksAndImage = (text: string): [string[], string | null] => { case "absolute": { const props = parseYoutube(node.href); if (!props) return; - return `https://i.ytimg.com/vi/${props.videoId}/mqdefault.jpg`; + image ??= `https://i.ytimg.com/vi/${props.videoId}/mqdefault.jpg`; + return; } default: return;