This commit is contained in:
Rizky 2024-01-29 10:27:49 +07:00
parent 6ea7c5ae0b
commit 67f11cbbb0
1 changed files with 6 additions and 1 deletions

View File

@ -163,7 +163,12 @@ export const EdApiServer = forwardRef<
value={local.api_url} value={local.api_url}
onChange={(e) => { onChange={(e) => {
local.api_url = e.currentTarget.value; local.api_url = e.currentTarget.value;
local.api_url = trim(local.api_url, "/"); if (
local.api_url.startsWith("http://") ||
local.api_url.startsWith("https://")
) {
local.api_url = trim(local.api_url, "/");
}
local.render(); local.render();
}} }}
onFocus={(e) => { onFocus={(e) => {