Call FitConsole after page load (#1534)

This commit is contained in:
Charles 2025-07-19 13:04:22 -04:00 committed by GitHub
parent 62ca53eeaf
commit 71d0326cb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,7 +90,9 @@
terminal.open(document.getElementById('terminal'));
fitAddon.fit(); //Fit on first load
window.addEventListener('load', () => {
fitAddon.fit();
});
window.addEventListener('resize', () => {
fitAddon.fit();