From aaac1336702b7ac4a07992f41db4f0bcdb931c70 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 17 Dec 2023 18:12:04 +0100 Subject: [PATCH] fix: typos Change-type: patch --- lib/gui/app/app.ts | 2 +- lib/gui/app/modules/image-writer.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/gui/app/app.ts b/lib/gui/app/app.ts index 92c477f5..751952c5 100644 --- a/lib/gui/app/app.ts +++ b/lib/gui/app/app.ts @@ -135,7 +135,7 @@ function setDrives(drives: Dictionary) { } } -// Spwaning the child process without privileges to get the drives list +// Spawning the child process without privileges to get the drives list // TODO: clean up this mess of exports export let requestMetadata: any; diff --git a/lib/gui/app/modules/image-writer.ts b/lib/gui/app/modules/image-writer.ts index 96d5b095..4b64d6e7 100644 --- a/lib/gui/app/modules/image-writer.ts +++ b/lib/gui/app/modules/image-writer.ts @@ -130,7 +130,7 @@ async function performWrite( console.log('Flash results', flashResults); // The flash wasn't cancelled and we didn't get a 'done' event - // Catch unexepected situation + // Catch unexpected situation if ( !flashResults.cancelled && !flashResults.skip && @@ -166,15 +166,15 @@ async function performWrite( cancelEmitter = (cancelStatus: string) => emit(cancelStatus); // Now that we know we're connected we can instruct the child process to start the write - const paramaters = { + const parameters = { image, destinations: drives, SourceType: image.SourceType, autoBlockmapping, decompressFirst, }; - console.log('params', paramaters); - emit('write', paramaters); + console.log('params', parameters); + emit('write', parameters); }); // The process continue in the event handler