mirror of
https://github.com/open-webui/open-webui
synced 2025-04-03 04:21:29 +00:00
refac
This commit is contained in:
parent
5743df2280
commit
bd3e5d7bfa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user