Merge pull request #4138 from ther0bster/fix-socket-io-url

fix: socket.io client url
This commit is contained in:
Timothy Jaeryang Baek 2024-07-27 16:17:36 +02:00 committed by GitHub
commit 90a6be8001
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@
await WEBUI_NAME.set(backendConfig.name);
if ($config) {
const _socket = io(`${WEBUI_BASE_URL}`, {
const _socket = io(`${WEBUI_BASE_URL}` || undefined, {
path: '/ws/socket.io',
auth: { token: localStorage.token }
});