Ensure we don't crash if the terminal socket is not ready yet
Upstream patch submitted https://github.com/sourcelair/xterm.js/pull/933
This commit is contained in:
@@ -66,6 +66,10 @@
|
||||
};
|
||||
|
||||
term._sendData = function (data) {
|
||||
if (socket.readyState !== 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
socket.send(data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user