chrome extension: point to Modal transcription service

- add unit test
This commit is contained in:
Aaron Boxer
2026-06-04 16:11:11 -04:00
committed by Aaron Boxer
parent 44940e2834
commit d0ad362b20
5 changed files with 269 additions and 3 deletions
+4 -1
View File
@@ -129,7 +129,10 @@ async function startRecord(option) {
return;
}
socket = new WebSocket(`ws://${option.host}:${option.port}/`);
const wsUrl = option.port
? `ws://${option.host}:${option.port}/`
: `wss://${option.host}/ws`;
socket = new WebSocket(wsUrl);
isServerReady = false;
let language = option.language;