We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb6bdf2 commit ae68b7cCopy full SHA for ae68b7c
1 file changed
web/src/main.js
@@ -24,8 +24,6 @@ const toggleScroll = document.querySelector('#toggle-scroll');
24
/** @type {HTMLDivElement} */
25
const termContainer = document.querySelector('#xterm-container');
26
27
-const termScreen = termContainer.querySelector('.xterm-screen');
28
-
29
/** @type {HTMLElement} */
30
const termView = document.querySelector('#term-view');
31
@@ -464,6 +462,9 @@ term.loadAddon(new WebLinksAddon());
464
462
term.open(termContainer);
465
463
fitAddon.fit();
466
+// It should be safe to get the screen here after opening the terminal in the container
+const termScreen = termContainer.querySelector('.xterm-screen');
467
+
468
/** @type {Number} */
469
let tid;
470
0 commit comments