mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Add one class at a time to element for IE11 compatibility
Connects to #753 Element.classList.add() does not work with multiple arguments in IE.
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user