Revert encode share embed url

This commit is contained in:
Rafael 2022-01-31 15:17:50 -03:00 committed by Thomas Zarebczan
parent b30a8568e5
commit 1628d4901c

View file

@ -3,7 +3,7 @@ import * as ICONS from 'constants/icons';
import { FormField } from 'component/common/form';
import Button from 'component/button';
import React, { useRef } from 'react';
import { generateEmbedUrlEncoded, generateEmbedIframeData } from 'util/web';
import { generateEmbedUrl, generateEmbedIframeData } from 'util/web';
type Props = {
copyable: string,
@ -21,7 +21,7 @@ export default function EmbedTextArea(props: Props) {
const { claim_id: claimId, name } = claim;
const input = useRef();
const streamUrl = generateEmbedUrlEncoded(name, claimId, includeStartTime && startTime, referralCode);
const streamUrl = generateEmbedUrl(name, claimId, includeStartTime && startTime, referralCode);
const { html: embedText } = generateEmbedIframeData(streamUrl);
function copyToClipboard() {