Skip to content

Commit

Permalink
now the super search has graceful error handling and userfeedback for…
Browse files Browse the repository at this point in the history
… when the webcam is not found/available
  • Loading branch information
mantzaris committed May 26, 2024
1 parent c62617b commit f5d57f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AppCode/taga-JS/super-search/super-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 182,8 @@ document.getElementById('use-webcam-button-id').onclick = function () {
})
.catch(function (err) {
console.log('An error occurred: ' err);
alert('Could not access the webcam. Please check if it is connected and try again.');
Close_Modal();
});

let streaming;
Expand Down

0 comments on commit f5d57f2

Please sign in to comment.