mirror of
https://github.com/open-webui/open-webui
synced 2025-01-29 13:58:09 +00:00
enhancement: youtu.be url support
This commit is contained in:
parent
58cfa5b9c1
commit
bcd5853ce7
@ -143,7 +143,11 @@
|
||||
</button>
|
||||
{/each}
|
||||
|
||||
{#if prompt.split(' ')?.at(0)?.substring(1).startsWith('https://www.youtube.com')}
|
||||
{#if prompt
|
||||
.split(' ')
|
||||
.some((s) => s.substring(1).startsWith('https://www.youtube.com') || s
|
||||
.substring(1)
|
||||
.startsWith('https://youtu.be'))}
|
||||
<button
|
||||
class="px-3 py-1.5 rounded-xl w-full text-left bg-gray-100 selected-command-option-button"
|
||||
type="button"
|
||||
|
Loading…
Reference in New Issue
Block a user