Skip to content

Commit

Permalink
Merge pull request wesbos#118 from onebree/patch-1
Browse files Browse the repository at this point in the history
Fixed typo for paintToCanvas
  • Loading branch information
wesbos authored Mar 10, 2017
2 parents bbc21a1 + 5952ae1 commit 2474f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 19 - Webcam Fun/scripts-FINISHED.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getVideo() {
});
}

function paintToCanavas() {
function paintToCanvas() {
const width = video.videoWidth;
const height = video.videoHeight;
canvas.width = width;
Expand Down Expand Up @@ -99,4 +99,4 @@ function greenScreen(pixels) {

getVideo();

video.addEventListener('canplay', paintToCanavas);
video.addEventListener('canplay', paintToCanvas);

0 comments on commit 2474f49

Please sign in to comment.