Skip to content

Commit

Permalink
fix broken scan
Browse files Browse the repository at this point in the history
  • Loading branch information
mebjas committed Feb 19, 2023
1 parent 4d7b0ee commit eff1c71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### Version 2.3.7
- Fix QR code scanning error.

### Version 2.3.6
- Fix to minified js, some UI fixes to improve accessibility & SEO.

Expand Down
2 changes: 1 addition & 1 deletion minified/html5-qrcode.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/camera/core-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class RenderedCameraImpl implements RenderedCamera {

this.surface.addEventListener("playing", onVideoStart);
this.surface.srcObject = this.mediaStream;
return this.surface.play();
this.surface.play();
}

static async create(
Expand All @@ -205,7 +205,7 @@ class RenderedCameraImpl implements RenderedCamera {
aspectRatioConstraint);
}

await renderedCamera.setupSurface();
renderedCamera.setupSurface();
return renderedCamera;
}

Expand Down

0 comments on commit eff1c71

Please sign in to comment.