Skip to content

Commit 47a84fe

Browse files
authored
Merge pull request #89 from takker99/fix-thumbnail
🐛 Youtubeのサムネイルを反映できていなかった
2 parents 6955e79 + 5bb60d7 commit 47a84fe

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)