version 2 of trying to get the module names

This commit is contained in:
2025-11-24 14:13:09 +01:00
parent 6531f5f51c
commit 9082543652
3 changed files with 12 additions and 10 deletions
+5 -3
View File
@@ -31,12 +31,14 @@ uploadContainer.addEventListener("drop", (e) => {
}
})
window.addEventListener('load', (e) => {
window.addEventListener('load', async (e) => {
try {
console.log("test");
loadLanguageOptions();
window.onStartup.getModuleNames();
const value = await window.onStartup.getModuleNames();
loadAiOptions(value.ai_modules);
loadTranscriptionOptions(value.transcription_modules);
} catch (error) {
}