Merge pull request #1034 from Tyriar/1033_ie11_support
Add support back for IE11
This commit is contained in:
@@ -101,6 +101,7 @@ Since xterm.js is typically implemented as a developer tool, only modern browser
|
|||||||
- Edge latest
|
- Edge latest
|
||||||
- Firefox latest
|
- Firefox latest
|
||||||
- Safari latest
|
- Safari latest
|
||||||
|
- IE11
|
||||||
|
|
||||||
Xterm.js works seamlessly in Electron apps and may even work on earlier versions of the browsers but these are the browsers we strive to keep working.
|
Xterm.js works seamlessly in Electron apps and may even work on earlier versions of the browsers but these are the browsers we strive to keep working.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -93,7 +93,7 @@ function createTerminal() {
|
|||||||
term.fit();
|
term.fit();
|
||||||
|
|
||||||
// fit is called within a setTimeout, cols and rows need this.
|
// fit is called within a setTimeout, cols and rows need this.
|
||||||
setTimeout(() => {
|
setTimeout(function () {
|
||||||
colsElement.value = term.cols;
|
colsElement.value = term.cols;
|
||||||
rowsElement.value = term.rows;
|
rowsElement.value = term.rows;
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
exports.fit = function (term) {
|
exports.fit = function (term) {
|
||||||
// Wrap fit in a setTimeout as charMeasure needs time to get initialized
|
// Wrap fit in a setTimeout as charMeasure needs time to get initialized
|
||||||
// after calling Terminal.open
|
// after calling Terminal.open
|
||||||
setTimeout(() => {
|
setTimeout(function () {
|
||||||
var geometry = exports.proposeGeometry(term);
|
var geometry = exports.proposeGeometry(term);
|
||||||
|
|
||||||
if (geometry) {
|
if (geometry) {
|
||||||
|
|||||||
Reference in New Issue
Block a user