From a36f941493e99338da6b14084047788ab0490ced Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 15 Oct 2021 19:34:01 +0000 Subject: [PATCH] fix Edge 18 and under clipboard --- core/rfb.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/rfb.js b/core/rfb.js index 101345ed..ba1d72f8 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -2502,7 +2502,10 @@ export default class RFB extends EventTargetMixin { if (mime == "text/plain") { - textdata = new TextDecoder().decode(data); + //textdata = new TextDecoder().decode(data); + for (let i = 0; i < data.length; i++) { + textdata+=String.fromCharCode(data[i]); + } if ((textdata.length > 0) && "\0" === textdata.charAt(textdata.length - 1)) { textdata = textdata.slice(0, -1);