fixed file submit code and incorrect property naming in file submission object

This commit is contained in:
2025-11-24 13:04:41 +01:00
parent 8c4d213ed0
commit baeb9efd2b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ try {
contextBridge.exposeInMainWorld("explorer", { contextBridge.exposeInMainWorld("explorer", {
onFileDrop: (file) => webUtils.getPathForFile(file) onFileDrop: (file) => webUtils.getPathForFile(file)
}) })
contextBridge.exposeInMainWorld("extractor", { contextBridge.exposeInMainWorld("submit", {
// extract: (file) => {ipcRenderer.send("file_submit", q)} submit: (meeting_specifications) => {ipcRenderer.send("file_submit", meeting_specifications)}
}) })
contextBridge.exposeInMainWorld("electronAPI", { contextBridge.exposeInMainWorld("electronAPI", {
getFilePath: (file) => {return webUtils.getPathForFile(file)} getFilePath: (file) => {return webUtils.getPathForFile(file)}
+2 -2
View File
@@ -52,10 +52,10 @@ function checkBoxes() {
}, },
"document": { "document": {
"module":aiType.value, "module":aiType.value,
"style": selectedStyles "styles": selectedStyles
} }
}; };
ipcRenderer.send("file_submit", sendingPackage) window.submit.submit(sendingPackage)
}else{ }else{
alert('The given file is not compatible. These are the available types: [".mp4", ".mov", ".avi", ".mkv"].'); alert('The given file is not compatible. These are the available types: [".mp4", ".mov", ".avi", ".mkv"].');
} }