mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
fixed file submit code and incorrect property naming in file submission object
This commit is contained in:
@@ -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)}
|
||||
|
||||
@@ -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"].');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user