diff --git a/UI/GeneralUI.js b/UI/GeneralUI.js index 53b33e4..66a82fa 100644 --- a/UI/GeneralUI.js +++ b/UI/GeneralUI.js @@ -98,13 +98,10 @@ export class GeneralUI const length = e.length; for (let i = 0; i < length; ++i) { - if (e[i].contentWindow.document.readyState === 'complete') { - e[i].height = e[i].contentWindow.document.body.scrollHeight + 25; - } else { - e[i].addEventListener('load', function() { - this.height = this.contentWindow.document.body.scrollHeight + 25; - }); - } + e[i].height = e[i].contentWindow.document.body.scrollHeight + 25; + e[i].addEventListener('load', function() { + this.height = this.contentWindow.document.body.scrollHeight + 25; + }); } }