mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Changed the base url validation
This commit is contained in:
parent
801b212bd4
commit
3f6bd63f03
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ export class OmbiComponent implements OnInit {
|
||||||
|
|
||||||
const result = <IOmbiSettings>form.value;
|
const result = <IOmbiSettings>form.value;
|
||||||
if(result.baseUrl.length > 0) {
|
if(result.baseUrl.length > 0) {
|
||||||
if(result.baseUrl.indexOf("/") <= 0) {
|
if(!result.baseUrl.startsWith("/")) {
|
||||||
this.notificationService.error("Please ensure your base url start with a '/'");
|
this.notificationService.error("Please ensure your base url starts with a '/'");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue