mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-16 02:11:52 +02:00
version 2 of trying to get the module names
This commit is contained in:
@@ -11,13 +11,13 @@ try {
|
||||
getFilePath: (file) => {return webUtils.getPathForFile(file)}
|
||||
})
|
||||
contextBridge.exposeInMainWorld("onStartup", {
|
||||
getModuleNames: (file) => { ipcRenderer.send("get_modules", "")}
|
||||
getModuleNames: () => ipcRenderer.invoke('get-module-names')
|
||||
})
|
||||
|
||||
ipcRenderer.on("modules", (event, resp) => {
|
||||
loadAiOptions(resp.ai_modules);
|
||||
loadTranscriptionOptions(resp.transcription_modules);
|
||||
})
|
||||
// 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