1
0
Fork 0

Remove stream property rom QRScanner.

This commit is contained in:
Kitteh 2021-05-25 12:47:11 +01:00
parent bd36e9f5ea
commit ffa9eecb9a

View file

@ -15,7 +15,6 @@ export type QRScannerProps = {
export class QRScanner extends Component<QRScannerProps, unknown> { export class QRScanner extends Component<QRScannerProps, unknown> {
videoElement = createRef<HTMLVideoElement>(); videoElement = createRef<HTMLVideoElement>();
stream: MediaStream;
qrScanner: QrScanner; qrScanner: QrScanner;
componentDidMount(): void { componentDidMount(): void {
@ -27,7 +26,6 @@ export class QRScanner extends Component<QRScannerProps, unknown> {
audio: false, audio: false,
}) })
.then((stream) => { .then((stream) => {
this.stream = stream;
this.videoElement.current.srcObject = stream; this.videoElement.current.srcObject = stream;
const lastSeenValue = ""; const lastSeenValue = "";
const qrScanner = new QrScanner(this.videoElement.current, (value) => { const qrScanner = new QrScanner(this.videoElement.current, (value) => {