Dearrow: Fix thumbnails with default option

This commit is contained in:
Nuckyz 2024-09-04 10:16:45 -03:00
parent 244cb26c32
commit 7333f40db6
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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}`; const replacementProxyURL = `https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=${videoId}&time=${thumbnails[0].timestamp}`;
embed.dearrow.oldThumb = dearrowByDefault ? embed.thumbnail.proxyURL : replacementProxyURL; embed.dearrow.oldThumb = dearrowByDefault ? embed.thumbnail.proxyURL : replacementProxyURL;
if (embed.thumbnail.proxyURL) embed.thumbnail.proxyURL = replacementProxyURL; if (dearrowByDefault) embed.thumbnail.proxyURL = replacementProxyURL;
} }
this.forceUpdate(); this.forceUpdate();