]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
main: replace depreacated term.destroy with .dispose
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jan 2019 07:39:03 +0000 (08:39 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jan 2019 07:40:21 +0000 (08:40 +0100)
term.destroy(); was depreacted with 3.4[0]

[0]: https://github.com/xtermjs/xterm.js/releases/tag/3.4.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/www/main.js

index 1081390086432ba844dabea5f3b3b3d14d15573c..26213a30ae70d0e1494619bb109c2ed9bb49d65f 100644 (file)
@@ -297,6 +297,6 @@ function errorTerminal(event) {
     term.off('data');
     clearInterval(ping);
     socket.close();
-    term.destroy();
+    term.dispose();
     updateState(states.disconnected, event.msg + event.code);
 }