Use navigator.language instead of hardcoded language

This commit is contained in:
Eduard Urbach 2018-07-07 19:42:38 +09:00
parent 558e756b53
commit b86a59f53a

View File

@ -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) {