Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BrowserMultiFormatReader doesn't forward hints to internal reader #629

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/browser/BrowserMultiFormatReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ export class BrowserMultiFormatReader extends BrowserCodeReader {

protected readonly reader: MultiFormatReader;

set hints(hints: Map<DecodeHintType, any>) {
this._hints = hints || null;

// Since we don't pass the hints in `decodeBitmap` as other Browser readers do, we need to set them here.
this.reader.setHints(hints);
}

public constructor(
hints: Map<DecodeHintType, any> = null,
timeBetweenScansMillis: number = 500
Expand Down