Skip to content

Commit 689a4bf

Browse files
committed
Merge pull request infusion#24 from ramilexe/patch-1
fix bug in IE8
2 parents f18e05c + 239f305 commit 689a4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.webcam.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
var cam = document.getElementById('XwebcamXobjectX');
5454

55-
if (cam.capture !== undefined) {
55+
if (cam && cam.capture !== undefined) {
5656

5757
/* Simple callback methods are not allowed :-/ */
5858
webcam.capture = function(x) {

0 commit comments

Comments
 (0)