Browse Source

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

fix: socket.io client url
Timothy Jaeryang Baek 9 months ago
parent
commit
90a6be8001
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/routes/+layout.svelte

+ 1 - 1
src/routes/+layout.svelte

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