some comments translated to english

This commit is contained in:
mic 2026-01-01 15:14:30 +01:00
parent 8735252ad1
commit d39771f02c

View file

@ -631,7 +631,7 @@ export function getConnectionType(prefsOrType, prompt, prefixOrSpecific = null)
let specificType = ''; let specificType = '';
if (typeof prefsOrType === 'object' && prefsOrType !== null) { if (typeof prefsOrType === 'object' && prefsOrType !== null) {
// Nuova firma: (prefs, prompt, prefix) // New signature: (prefs, prompt, prefix)
defaultType = prefsOrType.connection_type; defaultType = prefsOrType.connection_type;
if (typeof prefixOrSpecific === 'string' && prefixOrSpecific) { if (typeof prefixOrSpecific === 'string' && prefixOrSpecific) {
const prefix = prefixOrSpecific; const prefix = prefixOrSpecific;
@ -641,8 +641,7 @@ export function getConnectionType(prefsOrType, prompt, prefixOrSpecific = null)
} }
} }
} else { } else {
// Vecchia firma / Uso diretto: (connection_type_string, prompt, [specific_type_string]) // Old signature / Direct usage: (connection_type_string, prompt, [specific_type_string])
defaultType = prefsOrType;
if (typeof prefixOrSpecific === 'string') { if (typeof prefixOrSpecific === 'string') {
specificType = prefixOrSpecific; specificType = prefixOrSpecific;
} }