Update rfb.js
This commit is contained in:
parent
3f4d59ba4c
commit
d952c6960b
|
|
@ -493,8 +493,8 @@ export default class RFB extends EventTargetMixin {
|
||||||
for (let i = 0; i < text.length; i++) {
|
for (let i = 0; i < text.length; i++) {
|
||||||
// FIXME: text can have values outside of Latin1/Uint8
|
// FIXME: text can have values outside of Latin1/Uint8
|
||||||
let idx = text.charCodeAt(i);
|
let idx = text.charCodeAt(i);
|
||||||
data.push(idx & 0xff);
|
data[i] = idx & 0xff;
|
||||||
data.push(idx >> 8);
|
data[i + 1] = idx >> 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
RFB.messages.clientCutText(this._sock, data);
|
RFB.messages.clientCutText(this._sock, data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue