1
0
Fork 0

Fix linting

pull/1439/head
Ferenc Hammerl 2023-06-21 14:37:29 +00:00
parent 60f4e9859c
commit 2539b9b685
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export function getProxyUrl(reqUrl: URL): URL | undefined {
return new URL(proxyVar)
} catch {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
return new URL('http://' + proxyVar)
return new URL(`http://${proxyVar}`)
}
} else {
return undefined