From d39771f02c5ccb0146ee406b2848a45291dff649 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 1 Jan 2026 15:14:30 +0100 Subject: [PATCH] some comments translated to english --- js/mzta-utils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 49abe49f..c833bb31 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -631,7 +631,7 @@ export function getConnectionType(prefsOrType, prompt, prefixOrSpecific = null) let specificType = ''; if (typeof prefsOrType === 'object' && prefsOrType !== null) { - // Nuova firma: (prefs, prompt, prefix) + // New signature: (prefs, prompt, prefix) defaultType = prefsOrType.connection_type; if (typeof prefixOrSpecific === 'string' && prefixOrSpecific) { const prefix = prefixOrSpecific; @@ -641,8 +641,7 @@ export function getConnectionType(prefsOrType, prompt, prefixOrSpecific = null) } } } else { - // Vecchia firma / Uso diretto: (connection_type_string, prompt, [specific_type_string]) - defaultType = prefsOrType; + // Old signature / Direct usage: (connection_type_string, prompt, [specific_type_string]) if (typeof prefixOrSpecific === 'string') { specificType = prefixOrSpecific; }