We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 888b893 + 00435cc commit 89608e2Copy full SHA for 89608e2
src/server/wwwroot/assets/server.js
@@ -13,7 +13,7 @@ if (!apiServiceProtocol || apiServiceProtocol === "file:")
13
apiServiceProtocol = "http:"; // Needed if you launch this file from Finder
14
15
const apiServiceHostname = window.location.hostname || "localhost";
16
-const apiServicePort = ":" + (window.location.port || 32168);
+const apiServicePort = window.location.port === "" ? "" : ":" + (window.location.port || 32168);
17
const apiServiceUrl = `${apiServiceProtocol}//${apiServiceHostname}${apiServicePort}`;
18
19
// Private vars
0 commit comments