mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Merge commit '90825436520562cc7638f885b70286f765d9f20a' into feature/modular-ipc-system-implementation
This commit is contained in:
@@ -12,7 +12,7 @@ try {
|
||||
})
|
||||
|
||||
contextBridge.exposeInMainWorld("onStartup", {
|
||||
getModuleNames: (file) => { ipcRenderer.send("get_modules", "")}
|
||||
getModuleNames: () => ipcRenderer.invoke('get-module-names')
|
||||
})
|
||||
|
||||
|
||||
@@ -22,11 +22,6 @@ try {
|
||||
})
|
||||
|
||||
ipcRenderer.on("error", (event, err) => {alert(err)})
|
||||
|
||||
ipcRenderer.on("modules", (event, resp) => {
|
||||
loadAiOptions(resp.ai_modules);
|
||||
loadTranscriptionOptions(resp.transcription_modules);
|
||||
})
|
||||
} catch (error) {
|
||||
console.log("Error in preload.js");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user