From 9a9eb49353e2b4b3a9df7f13e2fa2375939bc1ef Mon Sep 17 00:00:00 2001 From: daniel k Date: Wed, 24 Apr 2024 14:54:43 +0900 Subject: [PATCH] refactor code --- src/util/index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/util/index.js b/src/util/index.js index ebf065df..80c87c9d 100644 --- a/src/util/index.js +++ b/src/util/index.js @@ -920,9 +920,6 @@ export function initSpeechRecognition(recognitionCallbackFn, finCallbackFn) { } export function setSpeechRecognitionLang(lang) { - if (!listenEngine) { - util.loadSpeechRecognition(); - } if (!listenEngine) { return; } @@ -939,9 +936,6 @@ export function stopSpeechRecognition() { } export function startSpeechRecognition() { - if (!listenEngine) { - loadSpeechRecognition(); - } if (listening || !listenEngine) { return; }