Skip to content

Commit 89608e2

Browse files
authored
Merge pull request #102 from miguelangel-nubla/patch-1
Bugfix: incorrect standard ports in service URL
2 parents 888b893 + 00435cc commit 89608e2

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)