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 b599160 commit 9e6acec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ const Home = () => {
recognizerRef.current.interimResults = true;
recognizerRef.current.continuous = true;
recognizerRef.current.onend = () => {
if (detecting) {
recognizerRef.current.start();
if (!detecting) {
return;
};
recognizerRef.current.start();
};
recognizerRef.current.onresult = event => {
[...event.results].slice(event.resultIndex).forEach(result => {
Expand Down

0 comments on commit 9e6acec

Please sign in to comment.