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

Fix pipeline

parent 0116893a
No related branches found
No related tags found
No related merge requests found
Pipeline #13279 passed
......@@ -166,9 +166,10 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) {
const that = this;
let constraint = null;
if ( this._('#videoSource').val === 'environment' || this._('#videoSource').val === 'user') {
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) {
video.srcObject = stream;
video.setAttribute("playsinline", true); // required to tell iOS safari we don't want fullscreen
......
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