mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-05 18:39:38 +00:00
Fixes javascript error; .trim() on undefined
This commit is contained in:
parent
0bfff8844e
commit
da2c6e8bc8
1 changed files with 8 additions and 1 deletions
|
@ -183,7 +183,14 @@ ColumnLayout {
|
||||||
opacity: localNode.checked
|
opacity: localNode.checked
|
||||||
id: bootstrapNodeEdit
|
id: bootstrapNodeEdit
|
||||||
daemonAddrText: persistentSettings.bootstrapNodeAddress.split(":")[0].trim()
|
daemonAddrText: persistentSettings.bootstrapNodeAddress.split(":")[0].trim()
|
||||||
daemonPortText: (persistentSettings.bootstrapNodeAddress.split(":")[1].trim() == "") ? "18081" : persistentSettings.bootstrapNodeAddress.split(":")[1]
|
daemonPortText: {
|
||||||
|
var node_split = persistentSettings.bootstrapNodeAddress.split(":");
|
||||||
|
if(node_split.length == 2){
|
||||||
|
(node_split[1].trim() == "") ? "18081" : node_split[1];
|
||||||
|
} else {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue