"nndet/vscode:/vscode.git/clone" did not exist on "12515f184f42e7f118100cced8e76f991a52bb33"
Commit bd3e5d7b authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 5743df22
......@@ -266,7 +266,6 @@
const imageUrl = takeScreenshot();
files = [
...files,
{
type: 'image',
url: imageUrl
......@@ -318,6 +317,7 @@
const devices = await navigator.mediaDevices.enumerateDevices();
videoInputDevices = devices.filter((device) => device.kind === 'videoinput');
if (!!navigator.mediaDevices.getDisplayMedia) {
videoInputDevices = [
...videoInputDevices,
{
......@@ -325,9 +325,9 @@
label: 'Screen Share'
}
];
}
console.log(videoInputDevices);
if (selectedVideoInputDeviceId === null && videoInputDevices.length > 0) {
selectedVideoInputDeviceId = videoInputDevices[0].deviceId;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment