fix decoding imported data from backend (#722)
This commit is contained in:
parent
33016bf6bf
commit
3b20e6e2b8
@ -252,8 +252,7 @@ export async function importFromBackend(
|
|||||||
buffer,
|
buffer,
|
||||||
);
|
);
|
||||||
// We need to convert the decrypted array buffer to a string
|
// We need to convert the decrypted array buffer to a string
|
||||||
const string = String.fromCharCode.apply(
|
const string = new window.TextDecoder("utf-8").decode(
|
||||||
null,
|
|
||||||
new Uint8Array(decrypted) as any,
|
new Uint8Array(decrypted) as any,
|
||||||
);
|
);
|
||||||
data = JSON.parse(string);
|
data = JSON.parse(string);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user