Skip to content

Commit 3cb56d2

Browse files
committed
Fix message
1 parent 4b46fe1 commit 3cb56d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/serial_backend.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@ function abortConnection() {
283283
}
284284

285285
// Centralized helper: show version mismatch warning and switch to CLI
286-
function showVersionMismatchAndCli() {
286+
function showVersionMismatchAndCli(message) {
287287
const dialog = $(".dialogConnectWarning")[0];
288288

289289
$(".dialogConnectWarning-content").html(
290-
i18n.getMessage("firmwareVersionNotSupported", [CONFIGURATOR.API_VERSION_ACCEPTED]),
290+
message || i18n.getMessage("firmwareVersionNotSupported", [CONFIGURATOR.API_VERSION_ACCEPTED]),
291291
);
292292

293293
$(".dialogConnectWarning-closebtn").one("click", function () {

0 commit comments

Comments
 (0)