test with niko - pass all claim preview urls through optimization site

This commit is contained in:
Sean Yesmunt 2019-11-13 12:26:02 -05:00
parent 20dde98506
commit 4a74ee681c

View file

@ -17,8 +17,8 @@ class CardMedia extends React.PureComponent<Props> {
return <FreezeframeWrapper src={thumbnail} className={className} />;
}
const url = thumbnail || Placeholder;
return <div style={{ backgroundImage: `url('${url.replace(/'/g,"\\'")}')` }} className={className} />;
const url = thumbnail ? 'https://ext.thumbnails.lbry.com/400x,q55/' + thumbnail : Placeholder;
return <div style={{ backgroundImage: `url('${url.replace(/'/g, "\\'")}')` }} className={className} />;
}
}