From c5789a80b3cdeb086917b16a70a51af8dc3eff2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilja=20Karta=C5=A1ov?= Date: Tue, 1 Aug 2023 16:23:50 +0200 Subject: [PATCH] Fix prusa connect port handling in URL builder --- src/printer/components/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer/components/settings.js b/src/printer/components/settings.js index b908b44d..5476a288 100644 --- a/src/printer/components/settings.js +++ b/src/printer/components/settings.js @@ -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) {