Skip to content

Commit

Permalink
case insensitive lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
robgruen committed Nov 20, 2024
1 parent 69e264d commit 532a460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/packages/shell/src/renderer/src/webSocketAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export async function createWebSocket(
) {
let url = window.location;
let protocol = url.protocol.toLowerCase() == "https" ? "wss" : "ws";
let port = url.hostname.toLocaleLowerCase() == "localhost" ? ":3000" : "";
let port = url.hostname.toLowerCase() == "localhost" ? ":3000" : "";

const endpoint = `${protocol}://${url.hostname}${port}`

Expand Down

0 comments on commit 532a460

Please sign in to comment.