From 6b57876ceb91fcf8fdb55d8d038b25a74d0e5455 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Mon, 10 Sep 2018 00:30:12 +0800 Subject: [PATCH] xterm.js: downgrade to 3.3.0 https://github.com/tsl0922/ttyd/issues/126 --- html/js/app.js | 2 +- html/package.json | 2 +- html/yarn.lock | 6 +++--- src/index.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/html/js/app.js b/html/js/app.js index 4b499a8..8ade991 100644 --- a/html/js/app.js +++ b/html/js/app.js @@ -244,7 +244,7 @@ var openWs = function() { sendMessage(JSON.stringify({AuthToken: authToken})); if (typeof term !== 'undefined') { - term.dispose(); + term.destroy(); } term = new Terminal({ diff --git a/html/package.json b/html/package.json index c88a156..bb73ac4 100644 --- a/html/package.json +++ b/html/package.json @@ -17,7 +17,7 @@ "bulma": "^0.6.1", "core-js": "^2.5.3", "fast-text-encoding": "^1.0.0", - "xterm": "^3.7.0", + "xterm": "3.3.0", "zmodem.js": "^0.1.7" }, "devDependencies": { diff --git a/html/yarn.lock b/html/yarn.lock index ff3dff7..3832f43 100644 --- a/html/yarn.lock +++ b/html/yarn.lock @@ -7733,9 +7733,9 @@ xdg-basedir@^3.0.0: version "4.0.1" resolved "http://registry.npm.taobao.org/xtend/download/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" -xterm@^3.7.0: - version "3.7.0" - resolved "http://registry.npm.taobao.org/xterm/download/xterm-3.7.0.tgz#b3eb1335dc04b92abe361711731d3b661e13db17" +xterm@3.3.0: + version "3.3.0" + resolved "http://registry.npm.taobao.org/xterm/download/xterm-3.3.0.tgz#b09a19fc2cd5decd21112e5c9dab0b61991f6cf3" y18n@^3.2.1: version "3.2.1" diff --git a/src/index.html b/src/index.html index 008e54f..566a11c 100644 --- a/src/index.html +++ b/src/index.html @@ -1 +1 @@ -ttyd - Terminal
\ No newline at end of file +ttyd - Terminal
\ No newline at end of file -- 2.43.4