Skip to content

Commit

Permalink
removed console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
odahcam committed Oct 29, 2020
1 parent cfd46ce commit 0a12c9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions projects/zxing-scanner-demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,13 @@ export class AppComponent {
this.deviceSelected = selectedStr;
const device = this.availableDevices.find(x => x.deviceId === selected);
this.deviceCurrent = device || undefined;
console.log(this.deviceSelected, this.deviceCurrent);
}

onDeviceChange(device: MediaDeviceInfo) {
const selectedStr = device?.deviceId || '';
if (this.deviceSelected === selectedStr) { return; }
this.deviceSelected = selectedStr;
this.deviceCurrent = device || undefined;
console.log(this.deviceSelected, this.deviceCurrent);
}

openFormatsDialog() {
Expand Down
2 changes: 1 addition & 1 deletion projects/zxing-scanner/src/lib/zxing-scanner.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ export class ZXingScannerComponent implements OnInit, OnDestroy {

const next = (x: ResultAndError) => this._onDecodeResult(x.result, x.error);
const error = (err: any) => this._onDecodeError(err);
const complete = () => { console.log('completed'); };
const complete = () => { };

this._scanSubscription = scanStream.subscribe(next, error, complete);
}
Expand Down

0 comments on commit 0a12c9e

Please sign in to comment.