From d5ad76279183d57996dfc62683d6baab9cf4944a Mon Sep 17 00:00:00 2001 From: gongym <1967988842@qq.com> Date: Mon, 20 Jul 2020 13:01:55 +0800 Subject: [PATCH] Update rfb.js --- core/rfb.js | 1 + 1 file changed, 1 insertion(+) 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);