fixed stuff
This commit is contained in:
parent
9e5cea5b8c
commit
0d8f99e1eb
@ -30,7 +30,7 @@ function TerminalComponent (p: {websocket: string|null}) {
|
||||
});
|
||||
|
||||
socket.addEventListener('message', (event) => {
|
||||
terminal.current?.write(event.data.replace(/\r\n/g, '\n'));
|
||||
terminal.current?.write(JSON.parse(event.data));
|
||||
});
|
||||
|
||||
terminal.current.onData((data) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user