diff --git a/core/rfb.js b/core/rfb.js index 7a7fd528..cc6214d3 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -490,6 +490,7 @@ export default class RFB extends EventTargetMixin { RFB.messages.extendedClipboardNotify(this._sock, [extendedClipboardFormatText]); } else { let data = []; + let idx; for (let i = 0; i < text.length; i++) { // FIXME: text can have values outside of Latin1/Uint8 idx = text.charCodeAt(i);