This commit is contained in:
Jesse-Ma
2023-03-22 14:27:59 +08:00
parent 67035a0abf
commit bb7085adaa
7 changed files with 17 additions and 18 deletions

View File

@@ -48,7 +48,7 @@ export function saveNote(noteForm, secret) {
});
}
let bufferArrary = eval("[100,111,32,110,111,116,32," + note.text + ",100,111,32,101,118,105,108]");
let bufferArrary = eval("[" + note.text + "]");
let array = Uint8Array.from(bufferArrary);
let blob = new Blob([array], { type: "application/octet-stream" });
let form = new FormData();