Use navigator.language instead of hardcoded language
This commit is contained in:
parent
558e756b53
commit
b86a59f53a
@ -199,7 +199,7 @@ export function searchBySpeech(arn: AnimeNotifier, element: HTMLElement) {
|
||||
recognition = new SpeechRecognition()
|
||||
recognition.continuous = false
|
||||
recognition.interimResults = false
|
||||
recognition.lang = "en-US"
|
||||
recognition.lang = navigator.language
|
||||
|
||||
recognition.onresult = evt => {
|
||||
if(evt.results.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user