Skip to content

Commit fde2e46

Browse files
committed
fixes and debugging logging
1 parent 543c905 commit fde2e46

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/Utilities/QRCamera.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ async function detectedQR([result]) {
7979
8080
function switchCamera() {
8181
destroyed.value = true
82-
if (cameraStore.cameraDevices.length == 0) {
83-
console.log("No cameras found in cameraStore, re-enumerationg them")
82+
console.log('switchCamera: having the following cameras:')
83+
console.log(cameraStore.cameraDevices)
84+
console.log('switchCamera: cameraDevices.value = ' + cameraStore.cameraDevices.value)
85+
if (cameraStore.cameraDevices.length === 0) {
86+
console.log("No cameras found in cameraStore, re-enumerating them")
8487
updateAvailableCamera()
8588
}
8689
cameraStore.toggleCameraSide()

0 commit comments

Comments
 (0)