mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
585b704597
commit
d7513e4ce8
1 changed files with 9 additions and 2 deletions
|
|
@ -243,8 +243,15 @@
|
|||
}).catch((e) => console.error('Failed to load user settings:', e))
|
||||
]);
|
||||
|
||||
// Tool servers can be slow or unreachable; they are not needed to initialize chat.
|
||||
setToolServers().catch((e) => console.error('Failed to load tool servers:', e));
|
||||
const loadToolServers = setToolServers().catch((e) =>
|
||||
console.error('Failed to load tool servers:', e)
|
||||
);
|
||||
if (
|
||||
$page.url.searchParams.get('q') &&
|
||||
($page.url.searchParams.get('submit') ?? 'true') === 'true'
|
||||
) {
|
||||
await loadToolServers;
|
||||
}
|
||||
|
||||
const setupKeyboardShortcuts = () => {
|
||||
document.addEventListener('keydown', async (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue