mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 08:51:24 +00:00
fix embed link to open in new tab instead of iframing the entire app inside embeds
This commit is contained in:
parent
730fc1a752
commit
2dccad2247
1 changed files with 2 additions and 1 deletions
|
@ -21,11 +21,12 @@ function FileViewerEmbeddedTitle(props: Props) {
|
||||||
contentLink = `${contentLink}?src=embed`;
|
contentLink = `${contentLink}?src=embed`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const contentLinkProps = isInApp ? { navigate: contentLink } : { href: contentLink };
|
||||||
const lbryLinkProps = isInApp ? { navigate: '/' } : { href: URL };
|
const lbryLinkProps = isInApp ? { navigate: '/' } : { href: URL };
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="file-viewer__embedded-title">
|
<div className="file-viewer__embedded-title">
|
||||||
<Button label={title} button="link" navigate={contentLink} />
|
<Button label={title} button="link" {...contentLinkProps} />
|
||||||
<Button
|
<Button
|
||||||
className="file-viewer__overlay-logo file-viewer__embedded-title-logo"
|
className="file-viewer__overlay-logo file-viewer__embedded-title-logo"
|
||||||
icon={ICONS.LBRY}
|
icon={ICONS.LBRY}
|
||||||
|
|
Loading…
Add table
Reference in a new issue