mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-12 20:50:08 -04:00
Merge pull request #5367 from Ylianst/fix-ssh-player
fix writeUtf8 for ssh player
This commit is contained in:
commit
4a0a86b83a
@ -1108,10 +1108,10 @@
|
||||
|
||||
function writeXTerm(data) {
|
||||
if (term == null) return;
|
||||
if (typeof data == 'string') {
|
||||
term.writeUtf8(data);
|
||||
if (term.writeUtf8) {
|
||||
if (typeof data == 'string') { term.writeUtf8(data); } else { term.writeUtf8(new Uint8Array(data)); }
|
||||
} else {
|
||||
term.writeUtf8(new Uint8Array(data));
|
||||
if (typeof data == 'string') { term.write(data); } else { term.write(new Uint8Array(data)); }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -181,10 +181,10 @@
|
||||
}
|
||||
|
||||
function tunnelUpdate(data) {
|
||||
if (typeof data == 'string') {
|
||||
term.writeUtf8(data);
|
||||
if (term.writeUtf8) {
|
||||
if (typeof data == 'string') { term.writeUtf8(data); } else { term.writeUtf8(new Uint8Array(data)); }
|
||||
} else {
|
||||
term.writeUtf8(new Uint8Array(data));
|
||||
if (typeof data == 'string') { term.write(data); } else { term.write(new Uint8Array(data)); }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user