From be8ddb11dbcbc855f0695c79b17b3e32546d4449 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 5 Oct 2017 20:21:34 -0700 Subject: [PATCH] Add support back for IE11 Fixes #1033 --- README.md | 1 + demo/main.js | 2 +- src/addons/fit/fit.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4e70ae594..e7a80bfb69 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ Since xterm.js is typically implemented as a developer tool, only modern browser - Edge latest - Firefox 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. diff --git a/demo/main.js b/demo/main.js index f4fb0a2a01..2ed2b33c3d 100644 --- a/demo/main.js +++ b/demo/main.js @@ -93,7 +93,7 @@ function createTerminal() { term.fit(); // fit is called within a setTimeout, cols and rows need this. - setTimeout(() => { + setTimeout(function () { colsElement.value = term.cols; rowsElement.value = term.rows; diff --git a/src/addons/fit/fit.js b/src/addons/fit/fit.js index 3e61a7efcd..c82039abf1 100644 --- a/src/addons/fit/fit.js +++ b/src/addons/fit/fit.js @@ -56,7 +56,7 @@ exports.fit = function (term) { // Wrap fit in a setTimeout as charMeasure needs time to get initialized // after calling Terminal.open - setTimeout(() => { + setTimeout(function () { var geometry = exports.proposeGeometry(term); if (geometry) {