Skip to content

Commit

Permalink
streamUrl -> stream
Browse files Browse the repository at this point in the history
  • Loading branch information
schmich committed Apr 26, 2017
1 parent bb59b1e commit c83bc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ class Scanner extends EventEmitter {
throw new Error('Camera is not defined.');
}

let streamUrl = await this._camera.start();
this.video.srcObject = streamUrl;
let stream = await this._camera.start();
this.video.srcObject = stream;

if (this._continuous) {
this._scanner.start();
Expand Down

0 comments on commit c83bc28

Please sign in to comment.