Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2474f49

Browse files
authored
Merge pull request wesbos#118 from onebree/patch-1
Fixed typo for paintToCanvas
2 parents bbc21a1 + 5952ae1 commit 2474f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

19 - Webcam Fun/scripts-FINISHED.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getVideo() {
1616
});
1717
}
1818

19-
function paintToCanavas() {
19+
function paintToCanvas() {
2020
const width = video.videoWidth;
2121
const height = video.videoHeight;
2222
canvas.width = width;
@@ -99,4 +99,4 @@ function greenScreen(pixels) {
9999

100100
getVideo();
101101

102-
video.addEventListener('canplay', paintToCanavas);
102+
video.addEventListener('canplay', paintToCanvas);

0 commit comments

Comments
 (0)