Add video-only embed support and clean up widgets.js

This commit is contained in:
Zed 2026-08-10 20:17:14 +07:00
commit fe8f482d5c
4 changed files with 112 additions and 109 deletions

View file

@ -6,7 +6,7 @@
function sendHeight() {
var currentHeight = embedElement.offsetHeight;
if (currentHeight !== lastHeight) {
if (currentHeight !== lastHeight && currentHeight > 0) {
lastHeight = currentHeight;
window.parent.postMessage(['resizeIframe', { h: currentHeight, url: location.href }], '*');
}