Skip to content

Commit 2bda2a0

Browse files
committed
custom corsproxy removeable
1 parent 209acbc commit 2bda2a0

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
@@ -397,11 +397,9 @@ export function Workspace() {
397397

398398
const handleTypingUrl = () => {
399399
const url = cloneUrlRef.current.value
400-
const corsproxy = corsproxyUrlRef.current.value
401400

402-
if (corsproxy) {
403-
config.set('corsproxy', corsproxy)
404-
}
401+
const corsproxy = corsproxyUrlRef.current.value
402+
config.set('corsproxy', corsproxy)
405403

406404
if (url) {
407405
global.dispatchCloneRepository(url)

0 commit comments

Comments
 (0)