mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
fixed web-workers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user