Skip to content

Commit

Permalink
optimize qrscanner
Browse files Browse the repository at this point in the history
  • Loading branch information
lowesyang committed Mar 8, 2019
1 parent b7d1c69 commit a87d9a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/pages/qr-scan/qr-scan.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class QrScanPage implements OnInit, OnDestroy {

ngOnDestroy() {
this.qrScanner.hide();
this.qrScanner.pausePreview();
this.qrScanner.destroy();
}

async qrScan() {
Expand Down

0 comments on commit a87d9a4

Please sign in to comment.