Archived
1
0

Fix worker require paths when behind proxy

This commit is contained in:
Asher
2020-03-02 17:44:16 -06:00
parent ecac0dd751
commit 77af2a5b0e
3 changed files with 5 additions and 6 deletions

View File

@ -54,7 +54,7 @@
const url = new URL(window.location.origin + "/" + parts.join("/"))
const el = document.getElementById("vscode-remote-commit")
const commit = el ? el.getAttribute("data-settings") : ""
const staticBase = url.href + "/static/" + commit + "/lib/vscode"
const staticBase = url.href.replace(/\/+$/, "") + "/static/" + commit + "/lib/vscode"
let nlsConfig
try {
nlsConfig = JSON.parse(document.getElementById("vscode-remote-nls-configuration").getAttribute("data-settings"))