mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add video-only embed support and clean up widgets.js
This commit is contained in:
parent
5733297f92
commit
fe8f482d5c
4 changed files with 112 additions and 109 deletions
|
|
@ -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 }], '*');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue