Update rfb.js

This commit is contained in:
gongym 2020-07-20 13:01:55 +08:00 committed by GitHub
parent ebcb7cc67b
commit d5ad762791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -490,6 +490,7 @@ export default class RFB extends EventTargetMixin {
RFB.messages.extendedClipboardNotify(this._sock, [extendedClipboardFormatText]); RFB.messages.extendedClipboardNotify(this._sock, [extendedClipboardFormatText]);
} else { } else {
let data = []; let data = [];
let idx;
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
idx = text.charCodeAt(i); idx = text.charCodeAt(i);