We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 543c905 commit fde2e46Copy full SHA for fde2e46
1 file changed
src/components/Utilities/QRCamera.vue
@@ -79,8 +79,11 @@ async function detectedQR([result]) {
79
80
function switchCamera() {
81
destroyed.value = true
82
- if (cameraStore.cameraDevices.length == 0) {
83
- console.log("No cameras found in cameraStore, re-enumerationg them")
+ console.log('switchCamera: having the following cameras:')
+ 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")
87
updateAvailableCamera()
88
}
89
cameraStore.toggleCameraSide()
0 commit comments