File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,10 +223,7 @@ function __webuiSocketUrl() {
223223 try {
224224 if ( typeof globalThis === "undefined" || ! globalThis . location ) return null ;
225225 const url = new URL ( globalThis . location . href ) ;
226- const currentPort = Number ( url . port || "0" ) ;
227- if ( ! Number . isFinite ( currentPort ) || currentPort <= 0 ) return null ;
228226 url . protocol = url . protocol === "https:" ? "wss:" : "ws:" ;
229- url . port = String ( currentPort + 10000 ) ;
230227 url . pathname = "/webui/ws" ;
231228 url . search = `client_id=${ encodeURIComponent ( __webuiClientId ) } ` ;
232229 return url . toString ( ) ;
Original file line number Diff line number Diff line change @@ -223,10 +223,7 @@ function __webuiSocketUrl() {
223223 try {
224224 if ( typeof globalThis === "undefined" || ! globalThis . location ) return null ;
225225 const url = new URL ( globalThis . location . href ) ;
226- const currentPort = Number ( url . port || "0" ) ;
227- if ( ! Number . isFinite ( currentPort ) || currentPort <= 0 ) return null ;
228226 url . protocol = url . protocol === "https:" ? "wss:" : "ws:" ;
229- url . port = String ( currentPort + 10000 ) ;
230227 url . pathname = "/webui/ws" ;
231228 url . search = `client_id=${ encodeURIComponent ( __webuiClientId ) } ` ;
232229 return url . toString ( ) ;
Original file line number Diff line number Diff line change @@ -223,10 +223,7 @@ function __webuiSocketUrl() {
223223 try {
224224 if ( typeof globalThis === "undefined" || ! globalThis . location ) return null ;
225225 const url = new URL ( globalThis . location . href ) ;
226- const currentPort = Number ( url . port || "0" ) ;
227- if ( ! Number . isFinite ( currentPort ) || currentPort <= 0 ) return null ;
228226 url . protocol = url . protocol === "https:" ? "wss:" : "ws:" ;
229- url . port = String ( currentPort + 10000 ) ;
230227 url . pathname = "/webui/ws" ;
231228 url . search = `client_id=${ encodeURIComponent ( __webuiClientId ) } ` ;
232229 return url . toString ( ) ;
You can’t perform that action at this time.
0 commit comments