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