fixed web-workers

This commit is contained in:
Christoph Oberhofer
2017-03-23 15:14:35 +01:00
parent eb858d0c63
commit 4a56fff2cb
3 changed files with 78 additions and 87 deletions
+1 -1
View File
@@ -3,11 +3,11 @@ $(function() {
init : function() {
this.overlay = document.querySelector('#interactive canvas.drawing');
this.state.inputStream.constraints.zoom = {exact: 2};
Quagga.fromCamera({
constraints: this.state.inputStream.constraints,
locator: this.state.locator,
decoder: this.state.decoder,
numOfWorkers: this.state.numOfWorkers,
}).then(function(scanner) {
this.scanner = scanner;
this.scanner