mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:35:26 +00:00
8 lines
251 B
JavaScript
8 lines
251 B
JavaScript
const iframes = document.querySelectorAll('iframe');
|
|
[...iframes].forEach((f) => {
|
|
f.addEventListener('load', () => {
|
|
f.contentWindow.QUnit.done(() => {
|
|
f.style.height = (f.contentDocument.body.scrollHeight + 20) + 'px';
|
|
});
|
|
});
|
|
});
|