mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
check for thumbnail cdn in config before using
This commit is contained in:
parent
e81d11fd55
commit
a23b3c8d26
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function FileThumbnail(props: Props) {
|
||||||
let url = thumbnail || (hasResolvedClaim ? Placeholder : '');
|
let url = thumbnail || (hasResolvedClaim ? Placeholder : '');
|
||||||
// @if TARGET='web'
|
// @if TARGET='web'
|
||||||
// Pass image urls through a compression proxy
|
// Pass image urls through a compression proxy
|
||||||
if (thumbnail && !thumbnail.includes('https://spee.ch')) {
|
if (thumbnail && THUMBNAIL_CDN_URL && !thumbnail.includes('https://spee.ch')) {
|
||||||
url = `${THUMBNAIL_CDN_URL}${encodeURIComponent(thumbnail)}`;
|
url = `${THUMBNAIL_CDN_URL}${encodeURIComponent(thumbnail)}`;
|
||||||
}
|
}
|
||||||
// @endif
|
// @endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue