File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ import {
1010 Reader ,
1111 Result ,
1212} from '@zxing/library' ;
13- import { DecodeContinuouslyCallback } from '../common/DecodeContinuouslyCallback' ;
14- import { HTMLCanvasElementLuminanceSource } from '../common/HTMLCanvasElementLuminanceSource' ;
15- import { HTMLVisualMediaElement } from '../common/HTMLVisualMediaElement' ;
16- import { IScannerControls } from '../common/IScannerControls' ;
17- import { canEnumerateDevices , hasNavigator } from '../common/navigator-utils' ;
18- import { IBrowserCodeReaderOptions } from './IBrowserCodeReaderOptions' ;
13+ import { DecodeContinuouslyCallback } from '../common/DecodeContinuouslyCallback' ;
14+ import { HTMLCanvasElementLuminanceSource } from '../common/HTMLCanvasElementLuminanceSource' ;
15+ import { HTMLVisualMediaElement } from '../common/HTMLVisualMediaElement' ;
16+ import { IScannerControls } from '../common/IScannerControls' ;
17+ import { canEnumerateDevices , hasNavigator } from '../common/navigator-utils' ;
18+ import { IBrowserCodeReaderOptions } from './IBrowserCodeReaderOptions' ;
1919
2020const defaultOptions : IBrowserCodeReaderOptions = {
2121 delayBetweenScanAttempts : 500 ,
@@ -750,12 +750,10 @@ export class BrowserCodeReader {
750750
751751 controls . switchTorch = switchTorch ;
752752
753- const stop = ( ) => {
753+ controls . stop = async ( ) => {
754754 originalControls . stop ( ) ;
755755 await switchTorch ( false ) ;
756756 } ;
757-
758- controls . stop = stop ;
759757 }
760758
761759 return controls ;
You can’t perform that action at this time.
0 commit comments