Professional Documents
Culture Documents
Script - Baixar Funis
Script - Baixar Funis
innerHTML
const json = JSON.parse(jsonData);
const complementaryInfo = {
folderId: null,
icon: null,
name: json.props.pageProps.publishedTypebot.typebot.name,
publicId: json.props.pageProps.publishedTypebot.typebot.publicId,
resultsTablePreferences: null,
isArchived: json.props.pageProps.publishedTypebot.typebot.isArchived,
isClosed: json.props.pageProps.publishedTypebot.typebot.isClosed,
selectedThemeTemplateId: null,
customDomain: null,
}
const formatedJson =
{ ...json.props.pageProps.publishedTypebot, ...complementaryInfo };
delete formatedJson.typebot;
delete formatedJson.typebotId;
document.body.appendChild(a);
a.click();
a.remove();