diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index 3915039c5..a8ba9ddb0 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -97,6 +97,17 @@ function main() { detailedStatuses[0].scrollIntoView(); history.replace(location.pathname, { ...location.state, scrolledToDetailedStatus: true }); } + + [].forEach.call(document.querySelectorAll('[data-component="Card"]'), (content) => { + const props = JSON.parse(content.getAttribute('data-props')); + ReactDOM.render(, content); + }); + + if (document.fonts && document.fonts.ready) { + document.fonts.ready.then(sizeBioText); + } else { + sizeBioText(); + } }); delegate(document, '.webapp-btn', 'click', ({ target, button }) => {