diff --git a/package.json b/package.json index 6f62493..5ec8498 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "purplea11ydesktop", "productName": "Purple A11y", - "version": "0.9.51", + "version": "0.9.52", "private": true, "dependencies": { "axios": "^1.6.0", diff --git a/public/electron/scanManager.js b/public/electron/scanManager.js index c05be0b..0f60570 100644 --- a/public/electron/scanManager.js +++ b/public/electron/scanManager.js @@ -646,7 +646,7 @@ const init = (scanEvent) => { return uploadFolderPath; }) - ipcMain.handle("getErrorLog", async (event, timeOfScan, timeOfError) => { + ipcMain.handle("getErrorLog", async (event, timeOfScanString, timeOfError) => { const errorLogPath = path.join(appPath, 'errors.txt'); const errorLog = fs.readFileSync(errorLogPath, 'utf-8'); const regex = /{.*?}/gs; @@ -674,6 +674,7 @@ const init = (scanEvent) => { for (const entry of entries){ const jsonEntry = JSON.parse(entry); const timeOfEntry = new Date(jsonEntry['timestamp']).getTime(); + const timeOfScan = new Date(timeOfScanString); if (timeOfEntry >= timeOfScan.getTime() && timeOfEntry <= timeOfError.getTime()){ allErrors = allErrors.concat(entry,"\n") }