mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Call FitConsole after page load (#1534)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user