mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 08:56:20 +00:00
refactor(terminal) addListeners
This commit is contained in:
parent
f90c154186
commit
c25fb99249
1 changed files with 1 additions and 10 deletions
|
|
@ -117,16 +117,7 @@ var CloudCmd, Util, DOM, CloudFunc, Terminal;
|
|||
socket.on(CHANNEL, write);
|
||||
|
||||
Term.on('data', function(data) {
|
||||
var code;
|
||||
|
||||
if (data) {
|
||||
code = data.charCodeAt(0);
|
||||
|
||||
/* when back to term
|
||||
* first simbol wasn't wrote
|
||||
*/
|
||||
socket.emit(CHANNEL, data);
|
||||
}
|
||||
socket.emit(CHANNEL, data);
|
||||
});
|
||||
|
||||
Term.on('resize', function(size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue