Add barcode-detector-api-polyfill dependency and update environment variable declarations in SvelteKit project
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import { BrowserCodeReader } from './BrowserCodeReader';
|
||||
import MultiFormatOneDReader from '../core/oned/MultiFormatOneDReader';
|
||||
/**
|
||||
* @deprecated Moving to @zxing/browser
|
||||
*
|
||||
* Barcode reader reader to use from browser.
|
||||
*/
|
||||
export class BrowserBarcodeReader extends BrowserCodeReader {
|
||||
/**
|
||||
* Creates an instance of BrowserBarcodeReader.
|
||||
* @param {number} [timeBetweenScansMillis=500] the time delay between subsequent decode tries
|
||||
* @param {Map<DecodeHintType, any>} hints
|
||||
*/
|
||||
constructor(timeBetweenScansMillis = 500, hints) {
|
||||
super(new MultiFormatOneDReader(hints), timeBetweenScansMillis, hints);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user