Skip to content

Commit

Permalink
test: just test :neckbeard:
Browse files Browse the repository at this point in the history
  • Loading branch information
bieshan committed Jan 3, 2021
1 parent 9e6acec commit bb033a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ const Home = () => {
recognizerRef.current.interimResults = true;
recognizerRef.current.continuous = true;
recognizerRef.current.onend = () => {
if (!detecting) {
return;
if (detecting) {
recognizerRef.current.start();
};
recognizerRef.current.start();
};
recognizerRef.current.onresult = event => {
[...event.results].slice(event.resultIndex).forEach(result => {
Expand Down

0 comments on commit bb033a7

Please sign in to comment.