more
This commit is contained in:
parent
a574a5c1de
commit
43af7ddc5f
1 changed files with 2 additions and 12 deletions
|
@ -146,7 +146,7 @@ function isStakeEnoughForPreview(stakedLevel) {
|
|||
// ****************************************************************************
|
||||
// ****************************************************************************
|
||||
|
||||
const MarkdownPreview = (props: MarkdownProps) => {
|
||||
export default React.memo<MarkdownProps>(function MarkdownPreview(props: MarkdownProps) {
|
||||
const {
|
||||
content,
|
||||
strip,
|
||||
|
@ -171,16 +171,8 @@ const MarkdownPreview = (props: MarkdownProps) => {
|
|||
} catch (e) {}
|
||||
|
||||
if (lbrySrc && lbrySrc.startsWith('lbry://')) {
|
||||
console.log('lbrysrc', lbrySrc);
|
||||
return lbrySrc;
|
||||
}
|
||||
//
|
||||
// if (lbrySrc && lbrySrc.startsWith('https://odysee.com')) {
|
||||
// console.log('lbrysrc', lbrySrc)
|
||||
// return lbrySrc;
|
||||
// }
|
||||
// console.log('iframeh', iframeHtml)
|
||||
|
||||
return iframeHtml;
|
||||
})
|
||||
: '';
|
||||
|
@ -258,6 +250,4 @@ const MarkdownPreview = (props: MarkdownProps) => {
|
|||
}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default MarkdownPreview;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue