diff --git a/src/components/EndpointDialong.tsx b/src/components/EndpointDialong.tsx index 7f2542f..a7be90a 100644 --- a/src/components/EndpointDialong.tsx +++ b/src/components/EndpointDialong.tsx @@ -44,6 +44,10 @@ const EndpointDialog = ({ endpoint }: EndpointDialogProps) => { return endpoint[0].startsWith("http://") || endpoint[0].startsWith("https://"); } + const saveEndpoint = () => { + localStorage.setItem("apiEndpoint", JSON.stringify(endpoint[0])); + } + return ( <> @@ -77,9 +81,15 @@ const EndpointDialog = ({ endpoint }: EndpointDialogProps) => {