Skip to content

Commit d652ec8

Browse files
committed
use writechunk
1 parent 4b591de commit d652ec8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/js/FileSystem.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ class FileSystem {
9898
return await fileHandle.createWritable(options);
9999
}
100100

101-
async writeChunck(writable, chunk) {
102-
await writable.write(chunk);
101+
async writeChunk(writable, chunk) {
102+
writable.write(chunk);
103103
}
104104

105105
async closeFile(writable) {
106-
await writable.close();
106+
writable.close();
107107
}
108108
}
109109

src/js/tabs/logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ logging.initialize = function (callback) {
257257
}
258258

259259
function append_to_file(data) {
260-
FileSystem.writeChunck(logging.fileWriter, new Blob([data], { type: "text/plain" })).catch((error) => {
260+
FileSystem.writeChunk(logging.fileWriter, new Blob([data], { type: "text/plain" })).catch((error) => {
261261
console.error("Error appending to file: ", error);
262262
});
263263
}

src/js/tabs/onboard_logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ onboard_logging.initialize = function (callback) {
502502

503503
// --- ORIGINAL BLOCK WRITE LOGIC ---
504504
const blob = new Blob([chunkDataView]);
505-
FileSystem.writeChunck(openedFile, blob);
505+
FileSystem.writeChunk(openedFile, blob);
506506

507507
nextAddress += chunkDataView.byteLength;
508508

0 commit comments

Comments
 (0)