Browse Source

bind focus in camera

Artur Paikin 7 years ago
parent
commit
f48bcb580c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/plugins/Webcam/index.js

+ 1 - 0
src/plugins/Webcam/index.js

@@ -19,6 +19,7 @@ module.exports = class Webcam extends Plugin {
     this.id = 'Webcam'
     this.title = 'Webcam'
     this.icon = WebcamIcon
+    this.focus = this.focus.bind(this)
 
     // set default options
     const defaultOptions = {