From b86a59f53abf6f4ef01baecb18a0558b00bdc33c Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 7 Jul 2018 19:42:38 +0900 Subject: [PATCH] Use navigator.language instead of hardcoded language --- scripts/Actions/Search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Actions/Search.ts b/scripts/Actions/Search.ts index 102b4d29..529cf4e5 100644 --- a/scripts/Actions/Search.ts +++ b/scripts/Actions/Search.ts @@ -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) {