Skip to content

Commit

Permalink
Dearrow: Fix thumbnails with default option
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckyz committed Sep 4, 2024
1 parent 244cb26 commit 7333f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/dearrow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function embedDidMount(this: Component<Props>) {
const replacementProxyURL = `https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=${videoId}&time=${thumbnails[0].timestamp}`;

embed.dearrow.oldThumb = dearrowByDefault ? embed.thumbnail.proxyURL : replacementProxyURL;
if (embed.thumbnail.proxyURL) embed.thumbnail.proxyURL = replacementProxyURL;
if (dearrowByDefault) embed.thumbnail.proxyURL = replacementProxyURL;
}

this.forceUpdate();
Expand Down

0 comments on commit 7333f40

Please sign in to comment.