Skip to content

Commit 4e3463d

Browse files
committed
Fix linux webview host build
1 parent 3f51961 commit 4e3463d

4 files changed

Lines changed: 365 additions & 173 deletions

File tree

src/bridge/generated/runtime_helpers.embed.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

src/bridge/generated/runtime_helpers.written.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

src/bridge/runtime_helpers.source.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)