From 09fd333997695062f55f6a60f3ececf38d2cfb7b Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 4 Nov 2022 14:38:30 +0000 Subject: [PATCH] Fixed bug where input would not be loaded from deep links if a chrenc was not set --- src/web/App.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/App.mjs b/src/web/App.mjs index 5df23974..48d7d6b5 100755 --- a/src/web/App.mjs +++ b/src/web/App.mjs @@ -517,11 +517,11 @@ class App { try { let inputVal; const inputChrEnc = this.manager.input.getChrEnc(); - const inputData = fromBase64(this.uriParams.input); + const inputData = fromBase64(this.uriParams.input, null, "byteArray"); if (inputChrEnc > 0) { - inputVal= cptable.utils.decode(inputChrEnc, inputData); + inputVal = cptable.utils.decode(inputChrEnc, inputData); } else { - inputVal = Utils.arrayBufferToStr(inputData); + inputVal = Utils.byteArrayToChars(inputData); } this.setInput(inputVal); } catch (err) {}