Skip to content

Commit

Permalink
Fix prusa connect port handling in URL builder
Browse files Browse the repository at this point in the history
  • Loading branch information
voxelias committed Aug 2, 2023
1 parent c60e2a5 commit c5789a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer/components/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function updatePrusaConnectStatus(data, updateInputValue) {
`conn-prusa-connect-status-${ready ? "ok" : "not-ok"}`
);
const protocol = tls ? "https" : "http";
const urlString = `${protocol}://${hostname}${port || ""}`;
const urlString = `${protocol}://${hostname}${port ? `:${port}` : ""}`;
const customMessage = `(${urlString})`;

if (updateInputValue || connectUrl !== urlString) {
Expand Down

0 comments on commit c5789a8

Please sign in to comment.