File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -284,9 +284,10 @@ <h1>Customized UI</h1>
284284 throw ex ;
285285 }
286286 } ) ;
287- document . getElementById ( 'btn-hide-scanner' ) . addEventListener ( 'click' , ( ) => {
287+ document . getElementById ( 'btn-hide-scanner' ) . addEventListener ( 'click' , async ( ) => {
288288 toggleBtnView ( true ) ;
289- scanner . hide ( ) ;
289+ let scanner = await pScanner ;
290+ scanner && scanner . hide ( ) ;
290291 } ) ;
291292 </ script >
292293</ body >
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ <h1 style="font-size: 1.5em;">Read Barcodes from Camera - Debug</h1>
4747 await scanner . updateRuntimeSettings ( rs ) ;
4848 let ss = await scanner . getScanSettings ( ) ;
4949 ss . intervalTime = 100 ;
50- scanSettings . whenToPlaySoundforSuccessfulRead = "frame" ;
50+ ss . whenToPlaySoundforSuccessfulRead = "frame" ;
5151 await scanner . updateScanSettings ( ss ) ;
5252 scanner . ifSaveOriginalImageInACanvas = true ;
5353 let processingCount = 0 ;
You can’t perform that action at this time.
0 commit comments