()
| 25 | } |
| 26 | |
| 27 | getShortcutCapture() { |
| 28 | if (!this.shortcutCapture) { |
| 29 | const ShortcutCapture = require("shortcut-capture"); |
| 30 | this.shortcutCapture = new ShortcutCapture(); |
| 31 | this.shortcutCapture.on("capture", (data: any) => |
| 32 | this.recognize(data["dataURL"]) |
| 33 | ); |
| 34 | } |
| 35 | return this.shortcutCapture; |
| 36 | } |
| 37 | |
| 38 | enabled(): boolean { |
| 39 | return !!this.client; |