bugfix
This commit is contained in:
parent
27c48d6d33
commit
005454440e
@ -24,7 +24,7 @@ bricks.QRCodeScan = class extends bricks.VBox {
|
|||||||
}
|
}
|
||||||
get_qr_result(decodedText, decodedResult){
|
get_qr_result(decodedText, decodedResult){
|
||||||
this.dispatch('recognized', decodedText)
|
this.dispatch('recognized', decodedText)
|
||||||
console.log('decodeText=', decodedText)
|
console.log('decodeText=', {text: decodedText})
|
||||||
this.scanner.stop()
|
this.scanner.stop()
|
||||||
}
|
}
|
||||||
errorhandle(msg){
|
errorhandle(msg){
|
||||||
@ -42,7 +42,7 @@ bricks.QRCodeScan = class extends bricks.VBox {
|
|||||||
|
|
||||||
}
|
}
|
||||||
stop(){
|
stop(){
|
||||||
if this.scanner && this.scanner.getState() !== Html5QrcodeScannerState.NOT_STARTED) {
|
if (this.scanner && this.scanner.getState() !== Html5QrcodeScannerState.NOT_STARTED) {
|
||||||
this.scanner.stop()
|
this.scanner.stop()
|
||||||
this.dispatch('stopped', decodedText)
|
this.dispatch('stopped', decodedText)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user