Fix: Issue 818 proxyServerUrl is getting "undefined" instead of real undefined if not defined (#819)

This commit is contained in:
Elad Ben Haim 2024-02-04 02:20:36 +02:00 • committed by GitHub
parent 07aaeb50cc
commit 7c19ae4c2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -763,9 +763,12 @@ export function getSidebarContent(
) || []
)}</script>
<script>window.isFullScreen = ${isFullScreen}</script>
<script>window.proxyServerUrl = "${vscode.workspace
.getConfiguration("continue")
.get("proxyServerUrl")}"</script>
<script>
const proxyServerUrl = vscode.workspace
.getConfiguration("continue")
.get("proxyServerUrl")
window.proxyServerUrl = proxyServerUrl ? String(proxyServerUrl) : undefined
</script>
${
edits