Skip to content

Commit b68dbb3

Browse files
committed
custom corsproxy removeable
1 parent 27f1443 commit b68dbb3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,9 @@ export function Workspace() {
556556

557557
const handleTypingUrl = () => {
558558
const url = cloneUrlRef.current.value
559-
const corsproxy = corsproxyUrlRef.current.value
560559

561-
if (corsproxy) {
562-
config.set('corsproxy', corsproxy)
563-
}
560+
const corsproxy = corsproxyUrlRef.current.value
561+
config.set('corsproxy', corsproxy)
564562

565563
if (url) {
566564
global.dispatchCloneRepository(url)

0 commit comments

Comments
 (0)