Skip to content

Conversation

@robins1212
Copy link
Contributor

fn = term.element.classList.add;
fn('fullscreen'); 

Can result in a "Illegal invocation" error in Chrome and an "Invalid calling object" error in Edge.
Adding fn = fn.bind(term.element.classList) fixes this.

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @robins1212 👌

@Tyriar Tyriar added this to the 3.10.0 milestone Dec 20, 2018
@Tyriar Tyriar merged commit fcef4d5 into xtermjs:master Dec 20, 2018
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 this pull request may close these issues.

2 participants