angular2-qrscanner icon indicating copy to clipboard operation
angular2-qrscanner copied to clipboard

destroy produces error if no video device available

Open perkma opened this issue 9 years ago • 0 comments

If you have no video device the function "stopScanning" called in ngOnDestroy produces an error at line 44: this.stream.getTracks()[0].stop();

Testing if this.stream and if this.stream.getTracks() exists should prevent these errors.

perkma avatar Mar 09 '17 15:03 perkma