angular2-qrscanner
angular2-qrscanner copied to clipboard
destroy produces error if no video device available
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.