added foolproof on instance name

This commit is contained in:
Nicolas Constant 2020-04-15 01:18:33 -04:00
parent d982c7a84b
commit fbc10b049f
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export class AddNewAccountComponent implements OnInit {
private instance: string;
@Input()
set setInstance(value: string) {
this.instance = value.trim();
this.instance = value.replace('http://', '').replace('https://', '').replace('/', '').toLowerCase().trim();
this.checkComrad();
}
get setInstance(): string {