Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo broken on xtermjs.org #94

Closed
xnoreq opened this issue Sep 13, 2019 · 2 comments · Fixed by #93
Closed

Demo broken on xtermjs.org #94

xnoreq opened this issue Sep 13, 2019 · 2 comments · Fixed by #93

Comments

@xnoreq
Copy link

xnoreq commented Sep 13, 2019

Using Chromium 76.0.3809.132

https://xtermjs.org/

I get a warning and an error and the demo terminal doesn't react to any input:

jquery-3.1.1.slim.min.js:2 jQuery.Deferred exception: term.on is not a function TypeError: term.on is not a function
    at runFakeTerminal (https://xtermjs.org/js/demo.js:23:14)
    at HTMLDocument.<anonymous> (https://xtermjs.org/js/demo.js:42:5)
    at j (https://code.jquery.com/jquery-3.1.1.slim.min.js:2:30164)
    at k (https://code.jquery.com/jquery-3.1.1.slim.min.js:2:30478) undefined
jquery-3.1.1.slim.min.js:2 Uncaught TypeError: term.on is not a function
    at runFakeTerminal (demo.js:23)
    at HTMLDocument.<anonymous> (demo.js:42)
    at j (jquery-3.1.1.slim.min.js:2)
    at k (jquery-3.1.1.slim.min.js:2)
@Tyriar Tyriar transferred this issue from xtermjs/xterm.js Sep 13, 2019
@Napstergfr
Copy link

term.onData( (data) => {
if (socket.readyState === 1) {
socket.send(data);
}
});
This worked for me!

@Muhammed-Rajab
Copy link

term.onData( (data) => {
if (socket.readyState === 1) {
socket.send(data);
}
});
This worked for me!

Thanks, It worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants