Skip to content

Commit

Permalink
fix: remember last selected camera
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Oct 12, 2024
1 parent 0a2868e commit 0536ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/components/Scan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ watch(cameras, () => {
if (selectedCamera.value && cameras.value.find(i => i.deviceId === selectedCamera.value)) {
setTimeout(() => {
qrScanner?.setCamera(selectedCamera.value!)
qrScanner?.start()
}, 250)
}
})
Expand Down

0 comments on commit 0536ee8

Please sign in to comment.