mirror of
https://github.com/nimiq/qr-scanner.git
synced 2026-07-28 04:06:51 +00:00
Fix deprecated example
This commit is contained in:
@@ -89,7 +89,7 @@ Create a `<video>` element where the web cam video stream should get rendered:
|
||||
|
||||
#### 2. Create a QrScanner Instance
|
||||
```js
|
||||
const qrScanner = new QrScanner(videoElem, result => console.log('decoded qr code:', result));
|
||||
const qrScanner = new QrScanner(videoElem, result => console.log('decoded qr code:', result), {});
|
||||
```
|
||||
|
||||
As an optional third parameter an options object can be provided.
|
||||
|
||||
Reference in New Issue
Block a user