Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
bd3e5d7b
"vscode:/vscode.git/clone" did not exist on "e6b6fba5129cb0bbc1120324f4dd53bb45ad7104"
Commit
bd3e5d7b
authored
Jun 07, 2024
by
Timothy J. Baek
Browse files
refac
parent
5743df22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/lib/components/chat/MessageInput/CallOverlay.svelte
src/lib/components/chat/MessageInput/CallOverlay.svelte
+9
-9
No files found.
src/lib/components/chat/MessageInput/CallOverlay.svelte
View file @
bd3e5d7b
...
@@ -266,7 +266,6 @@
...
@@ -266,7 +266,6 @@
const imageUrl = takeScreenshot();
const imageUrl = takeScreenshot();
files = [
files = [
...files,
{
{
type: 'image',
type: 'image',
url: imageUrl
url: imageUrl
...
@@ -318,6 +317,7 @@
...
@@ -318,6 +317,7 @@
const devices = await navigator.mediaDevices.enumerateDevices();
const devices = await navigator.mediaDevices.enumerateDevices();
videoInputDevices = devices.filter((device) => device.kind === 'videoinput');
videoInputDevices = devices.filter((device) => device.kind === 'videoinput');
if (!!navigator.mediaDevices.getDisplayMedia) {
videoInputDevices = [
videoInputDevices = [
...videoInputDevices,
...videoInputDevices,
{
{
...
@@ -325,9 +325,9 @@
...
@@ -325,9 +325,9 @@
label: 'Screen Share'
label: 'Screen Share'
}
}
];
];
}
console.log(videoInputDevices);
console.log(videoInputDevices);
if (selectedVideoInputDeviceId === null && videoInputDevices.length > 0) {
if (selectedVideoInputDeviceId === null && videoInputDevices.length > 0) {
selectedVideoInputDeviceId = videoInputDevices[0].deviceId;
selectedVideoInputDeviceId = videoInputDevices[0].deviceId;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment