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 c4292e9 commit 1c51188
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,9 +50,8 @@ const Home = () => {
recognizerRef.current.interimResults = true;
recognizerRef.current.continuous = true;
recognizerRef.current.onend = () => {
recognizerRef.current.start();
if (detecting) {
recognizerRef.current.stop();
if (android && detecting) {
recognizerRef.current.start();
};
};
recognizerRef.current.onresult = event => {
Expand Down

0 comments on commit 1c51188

Please sign in to comment.