Update view.jsx

fixes share string missing slash
This commit is contained in:
jessopb 2019-10-07 13:30:58 -04:00 committed by GitHub
parent 6cf4b0e0fb
commit 38dbff0c1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ class SocialShare extends React.PureComponent<Props> {
const { claim } = this.props;
const { canonical_url: canonicalUrl, permanent_url: permanentUrl } = claim;
const { speechShareable, onDone } = this.props;
const lbryTvPrefix = DOMAIN;
const lbryTvPrefix = `${DOMAIN}/`;
const OPEN_URL = 'https://open.lbry.com/';
const lbryUrl = canonicalUrl ? canonicalUrl.split('lbry://')[1] : permanentUrl.split('lbry://')[1];
const lbryWebUrl = lbryUrl.replace(/#/g, ':');