Skip to content

Commit

Permalink
fix: allow cancel proxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Sep 21, 2024
1 parent eaf1cd2 commit f476c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/main/src/lib/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import { store } from "./store"

export const setProxyConfig = (inputProxy: string) => {
const proxyUri = normalizeProxyUri(inputProxy)
store.set("proxy", proxyUri)
if (!proxyUri) {
return false
}
store.set("proxy", inputProxy)
return true
}

Expand Down

0 comments on commit f476c94

Please sign in to comment.