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", {
onFileDrop: (file) => webUtils.getPathForFile(file)
})
contextBridge.exposeInMainWorld("extractor", {
// extract: (file) => {ipcRenderer.send("file_submit", q)}
contextBridge.exposeInMainWorld("submit", {
submit: (meeting_specifications) => {ipcRenderer.send("file_submit", meeting_specifications)}
})
contextBridge.exposeInMainWorld("electronAPI", {
getFilePath: (file) => {return webUtils.getPathForFile(file)}
+2 -2
View File
@@ -52,10 +52,10 @@ function checkBoxes() {
},
"document": {
"module":aiType.value,
"style": selectedStyles
"styles": selectedStyles
}
};
ipcRenderer.send("file_submit", sendingPackage)
window.submit.submit(sendingPackage)
}else{
alert('The given file is not compatible. These are the available types: [".mp4", ".mov", ".avi", ".mkv"].');
}