mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue