// Apenas a janela do jogo hospedado neste site pode ajustar sua prĂ³pria altura. const frame = document.getElementById('metaltrunfo-frame'); if (frame) { const requestHeight = () => frame.contentWindow?.postMessage({ type: 'metaltrunfo:measure' }, window.location.origin); frame.addEventListener('load', requestHeight); window.addEventListener('message', event => { if (event.source !== frame.contentWindow || event.origin !== window.location.origin) return; const message = event.data; if (message?.type !== 'metaltrunfo:resize' || !Number.isFinite(message.height)) return; const height = Math.ceil(message.height); if (height < 400 || height > 5000) return; frame.style.height = `${height}px`; }); requestHeight(); }