Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit bf92bd4

Browse files
committed
Updated scan text
1 parent 2bd23c8 commit bf92bd4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

app/js/main.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ window.addEventListener("DOMContentLoaded", () => {
3131
frame.src = '';
3232
frame.id = 'frame';
3333
}
34-
35-
// Set camera overlay size
36-
setCameraOverlay();
3734

3835
//Dialog close btn event
3936
dialogCloseBtnElement.addEventListener('click', hideDialog, false);
@@ -111,6 +108,10 @@ window.addEventListener("DOMContentLoaded", () => {
111108
var pageContentElement = document.querySelector('.app__layout-content');
112109
pageContentElement.appendChild(camera);
113110
pageContentElement.appendChild(frame);
111+
112+
113+
// Set camera overlay size
114+
setCameraOverlay();
114115

115116
//On camera change
116117
camera.addEventListener('change', (event) => {
@@ -138,6 +139,8 @@ function setCameraOverlay() {
138139
//Initializing qr scanner
139140
window.addEventListener('load', (event) => {
140141
QRReader.init(); //To initialize QR Scanner
142+
// Set camera overlay size
143+
setCameraOverlay();
141144
});
142145

143146
//If service worker is installed, show offline usage notification

0 commit comments

Comments
 (0)