This commit is contained in:
ACoolName 2024-06-02 13:52:12 +03:00
parent 814b892551
commit a1a7d94ed1

View File

@ -33,7 +33,7 @@ const useTerminalResize = (terminalRef: React.RefObject<HTMLDivElement>, fitAddo
function TerminalComponent(p: { websocket: string | null }) { function TerminalComponent(p: { websocket: string | null }) {
const { websocket } = p; const { websocket } = p;
const terminalRef = useRef<HTMLDivElement>(null); const terminalRef = useRef<HTMLDivElement | null>(null);
const terminal = useRef<Terminal | null>(null); const terminal = useRef<Terminal | null>(null);
const fitAddon = useRef<FitAddon | null>(null); const fitAddon = useRef<FitAddon | null>(null);
const newWindow = useRef<Window | null>(null); const newWindow = useRef<Window | null>(null);