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

Commit b374100

Browse files
authored
Fix desktop issue (#100)
1 parent 79602f7 commit b374100

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/js/vendor/qrscan.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ QRReader.init = () => {
109109
constraints.video.facingMode = 'environment';
110110
}
111111

112-
startCapture(constraints);
112+
if (!constraints.video.mandatory.sourceId) {
113+
startCapture({ video: true });
114+
} else {
115+
startCapture(constraints);
116+
}
113117
} else {
114118
startCapture({ video: true });
115119
}

0 commit comments

Comments
 (0)