(btn, active)
| 1188 | addConsoleMessage('Failed to toggle terminal: ' + err.message, 'error'); |
| 1189 | cb.checked = !cb.checked; |
| 1190 | localStorage.setItem(TERMINAL_KEY, cb.checked ? '1' : '0'); |
| 1191 | applyTerminalVisibility(); |
| 1192 | }); |
| 1193 | if (cb.checked) showTab('terminal'); else _termTeardown(); |
| 1194 | } |
| 1195 | |
| 1196 | function _sendTermResize() { |
| 1197 | if (_term && _termSocket && _termSocket.connected) { |
| 1198 | _termSocket.emit('terminal_resize', { rows: _term.rows, cols: _term.cols }); |
| 1199 | } |
| 1200 | } |
no outgoing calls
no test coverage detected