chore: set ws binaryType

This commit is contained in:
naiba 2024-08-13 13:53:44 +08:00
parent c6fb3196ea
commit fda0dad5f1

View File

@ -74,6 +74,8 @@
cursorBlink: true,
});
const socket = new WebSocket((window.location.protocol == 'https:' ? 'wss' : 'ws') + '://' + window.location.host + '/terminal/' + '{{.SessionID}}');
socket.binaryType = 'arraybuffer';
const trzszAddon = new TrzszAddon(socket);
term.loadAddon(trzszAddon);
const fitAddon = new FitAddon.FitAddon();