streams/vendor/svg-edit/svgedit/test/all_tests.js
2019-11-11 12:11:51 +11:00

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';
});
});
});