We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2452c commit 10a6a64Copy full SHA for 10a6a64
public/electron/scanManager.js
@@ -278,11 +278,13 @@ const startScan = async (scanDetails, scanEvent) => {
278
// The true success where the process ran and pages were scanned
279
if (data.includes('Results directory is at')) {
280
console.log(data)
281
- const resultsPath = data
282
- .split('Results directory is at ')[1]
283
- .split('/')
284
- .pop()
285
- .split(' ')[0]
+ const resultsDirLine = data.split('Results directory is at ')[1];
+ let resultsPath;
+ if (resultsDirLine) {
+ // Use platform-specific separator
+ const sep = process.platform === 'win32' ? '\\' : '/';
286
+ resultsPath = resultsDirLine.split(sep).pop().split(' ')[0];
287
+ }
288
const scanId = randomUUID()
289
scanHistory[scanId] = resultsPath
290
0 commit comments