Skip to content

Commit b590fc3

Browse files
committed
feat(websocket): Prevent named links of youtube from being selected as the thumbnail
1 parent 6e241b1 commit b590fc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

browser/websocket/findMetadata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const findMetadata = (
7878
return;
7979
}
8080
case "absolute": {
81+
if (node.content) return;
8182
const props = parseYoutube(node.href);
8283
if (props && props.pathType !== "list") {
8384
image ??= `https://i.ytimg.com/vi/${props.videoId}/mqdefault.jpg`;

0 commit comments

Comments
 (0)