some comments translated to english
This commit is contained in:
parent
8735252ad1
commit
d39771f02c
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue