Skip to content

Commit 5bb60d7

Browse files
committed
🐛 Youtubeのサムネイルを反映できていなかった
1 parent 6955e79 commit 5bb60d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browser/websocket/makeChanges.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ const findLinksAndImage = (text: string): [string[], string | null] => {
9696
case "absolute": {
9797
const props = parseYoutube(node.href);
9898
if (!props) return;
99-
return `https://i.ytimg.com/vi/${props.videoId}/mqdefault.jpg`;
99+
image ??= `https://i.ytimg.com/vi/${props.videoId}/mqdefault.jpg`;
100+
return;
100101
}
101102
default:
102103
return;

0 commit comments

Comments
 (0)