Skip to content
Snippets Groups Projects
Commit 0116893a authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Small Ui fixes in Qr-Code Scanner

parent b7a37011
No related branches found
No related tags found
No related merge requests found
Pipeline #13277 failed
......@@ -165,10 +165,8 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) {
const that = this;
let constraint = null;
if ( this._('#videoSource').val === 'user' ) {
constraint = {facingMode: {exact: ("user")}};
}
else if ( this._('#videoSource').val === 'environment' ) {
if ( this._('#videoSource').val === 'environment' || this._('#videoSource').val === 'user') {
constraint = {facingMode: {exact: ("environment")}};
}
navigator.mediaDevices.getUserMedia({ video: { deviceId: this._('#videoSource').val, constraint}}).then(function(stream) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment