fixed the code so that it now returns the actual path of the file

This commit is contained in:
2025-11-12 20:24:45 +01:00
parent 87e3368a9a
commit 73f6fa7524
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -9,6 +9,9 @@ try {
contextBridge.exposeInMainWorld("extractor", {
extract: (file) => ipcRenderer.send("extract", file)
})
contextBridge.exposeInMainWorld("electronAPI", {
getFilePath: (file) => {return webUtils.getPathForFile(file)}
})
} catch (error) {
console.log("Error in preload.js");
}