Fix for voice commands
This commit is contained in:
parent
dc31d49452
commit
ed2070bd5d
1 changed files with 2 additions and 5 deletions
|
|
@ -127,11 +127,8 @@
|
|||
recognition.onend = function() {
|
||||
recognizing = false;
|
||||
$('.fa-microphone').show();
|
||||
$('#search').val('');
|
||||
if (ignore_onend) {
|
||||
return;
|
||||
}
|
||||
if (!final_transcript) {
|
||||
if (ignore_onend || !final_transcript) {
|
||||
$('#search').val('');
|
||||
return;
|
||||
}
|
||||
$('#search-form').submit();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue