From fda0dad5f199331f81ac680ff8a5f68c9d2974d5 Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 13 Aug 2024 13:53:44 +0800 Subject: [PATCH] chore: set ws binaryType --- resource/template/dashboard-default/terminal.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resource/template/dashboard-default/terminal.html b/resource/template/dashboard-default/terminal.html index c721f4598e..b9b57ae724 100644 --- a/resource/template/dashboard-default/terminal.html +++ b/resource/template/dashboard-default/terminal.html @@ -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();