This commit is contained in:
zeppi 2022-02-14 18:00:24 -05:00 committed by jessopb
parent a574a5c1de
commit 43af7ddc5f

View file

@ -146,7 +146,7 @@ function isStakeEnoughForPreview(stakedLevel) {
// **************************************************************************** // ****************************************************************************
// **************************************************************************** // ****************************************************************************
const MarkdownPreview = (props: MarkdownProps) => { export default React.memo<MarkdownProps>(function MarkdownPreview(props: MarkdownProps) {
const { const {
content, content,
strip, strip,
@ -171,16 +171,8 @@ const MarkdownPreview = (props: MarkdownProps) => {
} catch (e) {} } catch (e) {}
if (lbrySrc && lbrySrc.startsWith('lbry://')) { if (lbrySrc && lbrySrc.startsWith('lbry://')) {
console.log('lbrysrc', lbrySrc);
return lbrySrc; return lbrySrc;
} }
//
// if (lbrySrc && lbrySrc.startsWith('https://odysee.com')) {
// console.log('lbrysrc', lbrySrc)
// return lbrySrc;
// }
// console.log('iframeh', iframeHtml)
return iframeHtml; return iframeHtml;
}) })
: ''; : '';
@ -258,6 +250,4 @@ const MarkdownPreview = (props: MarkdownProps) => {
} }
</div> </div>
); );
}; });
export default MarkdownPreview;