Fixed bug where input would not be loaded from deep links if a chrenc was not set

This commit is contained in:
n1474335 2022-11-04 14:38:30 +00:00
parent b92501ee35
commit 09fd333997
1 changed files with 3 additions and 3 deletions

View File

@ -517,11 +517,11 @@ class App {
try { try {
let inputVal; let inputVal;
const inputChrEnc = this.manager.input.getChrEnc(); const inputChrEnc = this.manager.input.getChrEnc();
const inputData = fromBase64(this.uriParams.input); const inputData = fromBase64(this.uriParams.input, null, "byteArray");
if (inputChrEnc > 0) { if (inputChrEnc > 0) {
inputVal= cptable.utils.decode(inputChrEnc, inputData); inputVal = cptable.utils.decode(inputChrEnc, inputData);
} else { } else {
inputVal = Utils.arrayBufferToStr(inputData); inputVal = Utils.byteArrayToChars(inputData);
} }
this.setInput(inputVal); this.setInput(inputVal);
} catch (err) {} } catch (err) {}