Skip to content

Commit

Permalink
Incorrect warning
Browse files Browse the repository at this point in the history
The warning says `If capturing image in memory your callback return type cannot be the location`, but the code checks for 
`scope.opts.callbackReturn === Webcam.CallbackReturnTypes.buffer`. My proposed change should be what was intended, right?
  • Loading branch information
jimnys-8 authored Sep 7, 2021
1 parent 7b9986e commit 52610a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webcam.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Webcam.prototype = {
if(
location === null
&& scope.opts.callbackReturn ===
Webcam.CallbackReturnTypes.buffer
Webcam.CallbackReturnTypes.location
) {

console.warn(
Expand Down

0 comments on commit 52610a4

Please sign in to comment.