[MIRROR] The OpenDream TGUI fix [MDB IGNORE] (#24795)

* The OpenDream TGUI fix (#79244)

Modern browsers run the ready script before the DOM is loaded. Also
future proofs us for when Lummox upgrades the web engine.

---------

Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com>

* The OpenDream TGUI fix

---------

Co-authored-by: Jordan Dominion <Cyberboss@users.noreply.github.com>
Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com>
This commit is contained in:
SkyratBot
2023-11-05 01:25:42 -04:00
committed by GitHub
co-authored by Aleksej Komarov Jordan Dominion
parent c01d1c5a9e
commit aa2397e986
+5 -3
View File
@@ -510,9 +510,6 @@ window.replaceHtml = function (inline_html) {
+ "<!-- tgui:inline-html-end -->"
);
};
// Signal tgui that we're ready to receive updates
Byond.sendMessage('ready');
</script>
<style>
@@ -657,5 +654,10 @@ Thank you for your cooperation.
</div>
</noscript>
<script>
// Signal tgui that we're ready to receive updates
Byond.sendMessage('ready');
</script>
</body>
</html>