Fix for 'recognition is undefined'

This commit is contained in:
Hillel Coren 2018-02-19 12:21:51 +02:00
parent c9f532dc77
commit 205913fa7d

View File

@ -164,9 +164,9 @@
} }
function onMicrophoneClick() { function onMicrophoneClick() {
//$('#search').val("find david"); if (!recognition) {
//$('#search-form').submit(); return;
//return; }
$('.fa-microphone').hide(); $('.fa-microphone').hide();
$('#search').val("{{ trans('texts.listening') }}"); $('#search').val("{{ trans('texts.listening') }}");