Skip to content

Commit

Permalink
Add one class at a time to element for IE11 compatibility
Browse files Browse the repository at this point in the history
Connects to #753

Element.classList.add() does not work with multiple arguments in IE.
  • Loading branch information
LucianBuzzo committed Jul 3, 2017
1 parent 31aab8e commit 7e210c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ export class Renderer {
}
currentElement = this._spanElementObjectPool.acquire();
if (data === -1) {
currentElement.classList.add('reverse-video', 'terminal-cursor');
currentElement.classList.add('reverse-video');
currentElement.classList.add('terminal-cursor');
} else {
let bg = data & 0x1ff;
let fg = (data >> 9) & 0x1ff;
Expand Down

0 comments on commit 7e210c7

Please sign in to comment.