fix lbry:// links on desktop

This commit is contained in:
Jeremy Kauffman 2020-02-03 17:29:22 -05:00 committed by Jeremy Kauffman
parent d5e44d71f1
commit 228dc1c96a

View file

@ -34,7 +34,7 @@ const SimpleText = (props: SimpleTextProps) => {
const SimpleLink = (props: SimpleLinkProps) => { const SimpleLink = (props: SimpleLinkProps) => {
const { title, children } = props; const { title, children } = props;
let { href } = props; let { href } = props;
if (href && href.startsWith('lbry://')) { if (IS_WEB && href && href.startsWith('lbry://')) {
href = formatLbryUrlForWeb(href); href = formatLbryUrlForWeb(href);
// using Link after formatLbryUrl to handle "/" vs "#/" // using Link after formatLbryUrl to handle "/" vs "#/"
// for web and desktop scenarios respectively // for web and desktop scenarios respectively