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

Commit 79602f7

Browse files
authored
Fix for the samsung S20 (#94)
I noticed that rear camera are listed at the end, so sourceId is now getting latest id in the devices list. Tested on samsugn S20, J20, umidigi one pro, opera desktop. #92
1 parent e461b55 commit 79602f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/js/vendor/qrscan.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ QRReader.init = () => {
8585
constraints = {
8686
video: {
8787
mandatory: {
88-
sourceId: device[1].deviceId ? device[1].deviceId : null
88+
sourceId: device[device.length - 1].deviceId ? device[device.length - 1].deviceId : null
8989
}
9090
},
9191
audio: false

0 commit comments

Comments
 (0)