add multilingual, language & task option in Chrome extension
This commit is contained in:
@@ -79,11 +79,16 @@ async function startRecord(option) {
|
||||
stream.oninactive = () => {
|
||||
window.close();
|
||||
};
|
||||
|
||||
const socket = new WebSocket(`ws://${option.host}:${option.port}/`);
|
||||
let isServerReady = false;
|
||||
socket.onopen = function(e) {
|
||||
socket.send("handshake");
|
||||
socket.send(
|
||||
JSON.stringify({
|
||||
multilingual: option.multilingual,
|
||||
language: option.language,
|
||||
task: option.task
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
socket.onmessage = async (event) => {
|
||||
|
||||
Reference in New Issue
Block a user