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 bb033a7 commit c4292e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ const Home = () => {
recognizerRef.current.interimResults = true;
recognizerRef.current.continuous = true;
recognizerRef.current.onend = () => {
recognizerRef.current.start();
if (detecting) {
recognizerRef.current.start();
recognizerRef.current.stop();
};
};
recognizerRef.current.onresult = event => {
Expand Down

0 comments on commit c4292e9

Please sign in to comment.