Changed the base url validation

This commit is contained in:
tidusjar 2018-02-03 01:37:04 +00:00
commit 3f6bd63f03

View file

@ -42,8 +42,8 @@ export class OmbiComponent implements OnInit {
const result = <IOmbiSettings>form.value;
if(result.baseUrl.length > 0) {
if(result.baseUrl.indexOf("/") <= 0) {
this.notificationService.error("Please ensure your base url start with a '/'");
if(!result.baseUrl.startsWith("/")) {
this.notificationService.error("Please ensure your base url starts with a '/'");
return;
}
}