Skip to content

Commit

Permalink
изменил перекодирование заметки еще раз
Browse files Browse the repository at this point in the history
  • Loading branch information
veglem committed Mar 4, 2024
1 parent 55cbb93 commit a580204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/modules/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class NoteRequests {
for (const elem of body) {
const decoded = atob(elem.data)
const bytes = Uint8Array.from(decoded, (m) => m.codePointAt(0));
elem.data = JSON.parse(bytes.toString())
elem.data = JSON.parse(new TextDecoder().decode(bytes))
}
console.log(body)
return body
Expand Down

0 comments on commit a580204

Please sign in to comment.