This commit is contained in:
ACoolName 2024-06-02 22:40:36 +03:00
parent c72228328e
commit 93760559a6

View File

@ -284,7 +284,7 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
<script src="xterm-addon-fit/lib/xterm-addon-fit.js"></script> <script src="xterm-addon-fit/lib/xterm-addon-fit.js"></script>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root" style="width: 100vw;height: 100vh;"></div>
<script> <script>
const terminalContainer = document.getElementById('root'); const terminalContainer = document.getElementById('root');
@ -294,7 +294,7 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
terminal.open(terminalContainer); terminal.open(terminalContainer);
fitAddon.fit(); fitAddon.fit();
if (websocket) { if ("`+websocket+`") {
const socket = new WebSocket("`+websocket+`"); const socket = new WebSocket("`+websocket+`");
socket.onerror = (ev) => { socket.onerror = (ev) => {