Remove stream property rom QRScanner.
This commit is contained in:
parent
bd36e9f5ea
commit
ffa9eecb9a
|
@ -15,7 +15,6 @@ export type QRScannerProps = {
|
|||
export class QRScanner extends Component<QRScannerProps, unknown> {
|
||||
videoElement = createRef<HTMLVideoElement>();
|
||||
|
||||
stream: MediaStream;
|
||||
qrScanner: QrScanner;
|
||||
|
||||
componentDidMount(): void {
|
||||
|
@ -27,7 +26,6 @@ export class QRScanner extends Component<QRScannerProps, unknown> {
|
|||
audio: false,
|
||||
})
|
||||
.then((stream) => {
|
||||
this.stream = stream;
|
||||
this.videoElement.current.srcObject = stream;
|
||||
const lastSeenValue = "";
|
||||
const qrScanner = new QrScanner(this.videoElement.current, (value) => {
|
||||
|
|
Loading…
Reference in a new issue