vue-qrcode-reader
Advanced tools
Comparing version 3.0.5 to 3.0.6
{ | ||
"name": "vue-qrcode-reader", | ||
"description": "A set of Vue.js components for detecting and decoding QR codes.", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Niklas Gruhn", |
@@ -33,7 +33,8 @@ import { StreamApiNotSupportedError, InsecureContextError } from "./errors.js"; | ||
// Filter some devices, known to be bad choices. | ||
const deviceBlackList = ["OBS Virtual Camera"]; | ||
const deviceBlackList = ["OBS Virtual Camera", "OBS-Camera"]; | ||
const devices = (await navigator.mediaDevices.enumerateDevices()) | ||
.filter(({ kind }) => kind === "videoinput") | ||
.filter(({ label }) => !deviceBlackList.includes(label)); | ||
.filter(({ label }) => !deviceBlackList.includes(label)) | ||
.filter(({ label }) => !label.includes("infrared")); | ||
@@ -40,0 +41,0 @@ if (devices.length > 2) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4062899
20826