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`;
|
||||
}
|
||||
|
||||
const contentLinkProps = isInApp ? { navigate: contentLink } : { href: contentLink };
|
||||
const lbryLinkProps = isInApp ? { navigate: '/' } : { href: URL };
|
||||
|
||||
return (
|
||||
<div className="file-viewer__embedded-title">
|
||||
<Button label={title} button="link" navigate={contentLink} />
|
||||
<Button label={title} button="link" {...contentLinkProps} />
|
||||
<Button
|
||||
className="file-viewer__overlay-logo file-viewer__embedded-title-logo"
|
||||
icon={ICONS.LBRY}
|
||||
|
|
Loading…
Add table
Reference in a new issue