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 {
10
10
Reader ,
11
11
Result ,
12
12
} 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' ;
19
19
20
20
const defaultOptions : IBrowserCodeReaderOptions = {
21
21
delayBetweenScanAttempts : 500 ,
@@ -750,12 +750,10 @@ export class BrowserCodeReader {
750
750
751
751
controls . switchTorch = switchTorch ;
752
752
753
- const stop = ( ) => {
753
+ controls . stop = async ( ) => {
754
754
originalControls . stop ( ) ;
755
755
await switchTorch ( false ) ;
756
756
} ;
757
-
758
- controls . stop = stop ;
759
757
}
760
758
761
759
return controls ;
You can’t perform that action at this time.
0 commit comments