mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-07 01:00:20 +00:00
🐛 修复 Windows WebTerminal
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user