Search
Close this search box.
window.addEventListener('message', function (e) { if (e.origin !== "https://events.humanitix.com"){ return; } var messageData = e.data; var iframeEl = document.getElementById('iframe-container'); if (iframeEl && messageData && !isNaN(messageData.scrollHeight) && messageData.location === iframeEl.src) { iframeEl.style.height = messageData.scrollHeight + 20 + 'px'; } }, false);