mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fixed IE issues with classList.add
`classList.add` in IE does not take more than one parameter and this would not work. Split in 3 statements to fix it.
This commit is contained in:
+3
-1
@@ -532,7 +532,9 @@
|
||||
* Create main element container
|
||||
*/
|
||||
this.element = this.document.createElement('div');
|
||||
this.element.classList.add('terminal', 'xterm', 'xterm-theme-' + this.theme);
|
||||
this.element.classList.add('terminal');
|
||||
this.element.classList.add('xterm');
|
||||
this.element.classList.add('xterm-theme-' + this.theme);
|
||||
this.element.setAttribute('tabindex', 0);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user