log using handle

This commit is contained in:
Lumaa 2024-07-16 16:03:53 +02:00
parent 6d3d32704c
commit fca89a52d5
1 changed files with 8 additions and 3 deletions

View File

@ -143,9 +143,14 @@ struct AddInstanceView: View {
verifyError = false verifyError = false
} }
let cleanInstance = instanceUrl var cleanInstance = self.instanceUrl
if instanceUrl.contains("@") {
cleanInstance = String(instanceUrl.split(separator: "@")[1]) // instance
} else {
cleanInstance = instanceUrl
.replacingOccurrences(of: "http://", with: "") .replacingOccurrences(of: "http://", with: "")
.replacingOccurrences(of: "https://", with: "") .replacingOccurrences(of: "https://", with: "")
}
if !isInstanceSafe() { if !isInstanceSafe() {
if responsability == false && agreedResponsability == false { if responsability == false && agreedResponsability == false {