mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 09:21:22 +00:00
refac
This commit is contained in:
parent
8366e28725
commit
0413768244
1 changed files with 4 additions and 1 deletions
|
|
@ -160,7 +160,10 @@ export const resolveTerminalConnection = (
|
|||
return {
|
||||
selector,
|
||||
baseUrl: `${WEBUI_API_BASE_URL}/terminals/${encodeURIComponent(selector)}`,
|
||||
key: token,
|
||||
// Panels outlive Tether's token rotations; read the current session at request time.
|
||||
get key() {
|
||||
return typeof localStorage === 'undefined' ? token : (localStorage.getItem('token') ?? '');
|
||||
},
|
||||
system: true
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue