From 8c8989bc03526d3f6954152257c8db7da1f0435f Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 27 Mar 2020 22:42:26 -0400 Subject: [PATCH] Add extra URLs Can add more based on content type later? --- ui/component/socialShare/view.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/component/socialShare/view.jsx b/ui/component/socialShare/view.jsx index f4f2efcf5..2081406ac 100644 --- a/ui/component/socialShare/view.jsx +++ b/ui/component/socialShare/view.jsx @@ -4,7 +4,7 @@ import React from 'react'; import Button from 'component/button'; import CopyableText from 'component/copyableText'; import EmbedTextArea from 'component/embedTextArea'; -import { generateDirectUrl } from 'util/lbrytv'; +import { generateDownloadUrl } from 'util/lbrytv'; const IOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform); @@ -49,7 +49,7 @@ class SocialShare extends React.PureComponent { const encodedLbryURL: string = `${OPEN_URL}${encodeURIComponent(lbryWebUrl)}`; const referralParam: string = referralCode && rewardsApproved ? `?r=${referralCode}` : ''; const lbryURL: string = `${OPEN_URL}${lbryWebUrl}${referralParam}`; - const directUrl = generateDirectUrl(name, claimId); + const downloadUrl = `${OPEN_URL}${generateDownloadUrl(name, claimId)}`; return ( @@ -114,7 +114,8 @@ class SocialShare extends React.PureComponent { {showEmbed && } {showExtra && (
- + +
)}