mirror of
https://github.com/pelican-dev/panel.git
synced 2025-08-03 00:12:19 +02:00
Call FitConsole after page load (#1534)
This commit is contained in:
parent
62ca53eeaf
commit
71d0326cb2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user