🐛 修复 Windows WebTerminal

This commit is contained in:
naiba committed 2021-08-19 00:04:09 +08:00
1 parent 2d30b2cf47
commit 7990689949
10 files changed
+26 -9

No files matched your search

@@ -40,6 +40,10 @@
term.loadAddon(fitAddon);
term.open(document.getElementById('terminal-container'));
socket.onopen = () => {
onResize()
}
function onResize() {
fitAddon.fit()
const w = fitAddon.proposeDimensions();