Skip to content

Commit 00435cc

Browse files
Bugfix: incorrect standard ports in service URL
Corrected an issue where, when using standard ports (80 for HTTP and 443 for HTTPS), the page incorrectly tried to connect to port 32168 instead.
1 parent ac1a881 commit 00435cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/wwwroot/assets/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!apiServiceProtocol || apiServiceProtocol === "file:")
1313
apiServiceProtocol = "http:"; // Needed if you launch this file from Finder
1414

1515
const apiServiceHostname = window.location.hostname || "localhost";
16-
const apiServicePort = ":" + (window.location.port || 32168);
16+
const apiServicePort = window.location.port === "" ? "" : ":" + (window.location.port || 32168);
1717
const apiServiceUrl = `${apiServiceProtocol}//${apiServiceHostname}${apiServicePort}`;
1818

1919
// Private vars

0 commit comments

Comments
 (0)