'; window.addEventListener('message', function(e){ if (frame && e.source === frame.contentWindow && e.data && e.data.twBodyComp) { frame.style.height = e.data.height + 'px'; } }); })();