log using handle
This commit is contained in:
parent
6d3d32704c
commit
fca89a52d5
|
@ -143,9 +143,14 @@ struct AddInstanceView: View {
|
||||||
verifyError = false
|
verifyError = false
|
||||||
}
|
}
|
||||||
|
|
||||||
let cleanInstance = instanceUrl
|
var cleanInstance = self.instanceUrl
|
||||||
.replacingOccurrences(of: "http://", with: "")
|
if instanceUrl.contains("@") {
|
||||||
.replacingOccurrences(of: "https://", with: "")
|
cleanInstance = String(instanceUrl.split(separator: "@")[1]) // instance
|
||||||
|
} else {
|
||||||
|
cleanInstance = instanceUrl
|
||||||
|
.replacingOccurrences(of: "http://", with: "")
|
||||||
|
.replacingOccurrences(of: "https://", with: "")
|
||||||
|
}
|
||||||
|
|
||||||
if !isInstanceSafe() {
|
if !isInstanceSafe() {
|
||||||
if responsability == false && agreedResponsability == false {
|
if responsability == false && agreedResponsability == false {
|
||||||
|
|
Loading…
Reference in New Issue