This commit is contained in:
@@ -817,11 +817,14 @@
|
|||||||
if (readerWrap) readerWrap.style.display = 'block';
|
if (readerWrap) readerWrap.style.display = 'block';
|
||||||
setScanStatus('Initializing camera...', 'warn');
|
setScanStatus('Initializing camera...', 'warn');
|
||||||
|
|
||||||
|
const scannerContainer = document.querySelector('.library-scan-reader-wrap');
|
||||||
|
scannerContainer.style.display = 'block';
|
||||||
|
|
||||||
Quagga.init({
|
Quagga.init({
|
||||||
inputStream: {
|
inputStream: {
|
||||||
name: "Live",
|
name: "Live",
|
||||||
type: "LiveStream",
|
type: "LiveStream",
|
||||||
target: document.querySelector('#library-scanner-container'),
|
target: document.querySelector('.library-scan-reader'),
|
||||||
constraints: {
|
constraints: {
|
||||||
width: 640,
|
width: 640,
|
||||||
height: 480,
|
height: 480,
|
||||||
|
|||||||
Reference in New Issue
Block a user