Patch for Change Request in #324

master
Hollow Man 6 years ago
parent b4e2d15a0b
commit 57546b3fa5
No known key found for this signature in database
GPG Key ID: 6CA2A0660F48F7A
  1. 11
      app/terminal/index.html
  2. 4
      app/terminal/server.js

@ -121,7 +121,16 @@
window.addEventListener("resize", sendSizeToServer); window.addEventListener("resize", sendSizeToServer);
} }
socket.onclose = () => {}
socket.onmessage = (msg) => {
if(msg==="Closing"){
socket.close();
}
}
socket.onclose = () => {
window.close();
}
socket.onerror = () => {} socket.onerror = () => {}
</script> </script>
</body> </body>

@ -1,7 +1,9 @@
this.Pty = require("node-pty"); this.Pty = require("node-pty");
this.Websocket = require("ws").Server; this.Websocket = require("ws").Server;
this.onclosed = () => {}; this.onclosed = () => {
ws.send("Closing");
};
this.onopened = () => {}; this.onopened = () => {};
this.onresize = () => {}; this.onresize = () => {};
this.ondisconnected = () => {}; this.ondisconnected = () => {};

Loading…
Cancel
Save