From ffa9eecb9a18ed6f4908c6ab6e8e6fc6ec9ad056 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Tue, 25 May 2021 12:47:11 +0100 Subject: [PATCH] Remove stream property rom QRScanner. --- src/elements/QRScanner.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/elements/QRScanner.tsx b/src/elements/QRScanner.tsx index 5170ba4..52c1e5e 100644 --- a/src/elements/QRScanner.tsx +++ b/src/elements/QRScanner.tsx @@ -15,7 +15,6 @@ export type QRScannerProps = { export class QRScanner extends Component { videoElement = createRef(); - stream: MediaStream; qrScanner: QrScanner; componentDidMount(): void { @@ -27,7 +26,6 @@ export class QRScanner extends Component { audio: false, }) .then((stream) => { - this.stream = stream; this.videoElement.current.srcObject = stream; const lastSeenValue = ""; const qrScanner = new QrScanner(this.videoElement.current, (value) => {