mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Update web-terminal.js
This commit is contained in:
parent
ccbc10ac2f
commit
86c0228a78
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ if (terminalElement !== null) {
|
||||||
|
|
||||||
fitAddon.fit();
|
fitAddon.fit();
|
||||||
|
|
||||||
const socket = new WebSocket(`ws://49.13.166.115:3311`);
|
const socket = new WebSocket(`ws://${window.location.host}/_shell/`);
|
||||||
socket.addEventListener('open', (_) => {
|
socket.addEventListener('open', (_) => {
|
||||||
terminal.onData((data) => socket.send(data));
|
terminal.onData((data) => socket.send(data));
|
||||||
socket.addEventListener('message', (evt) => terminal.write(evt.data));
|
socket.addEventListener('message', (evt) => terminal.write(evt.data));
|
||||||
|
|
Loading…
Reference in a new issue