Skip to content

Commit acf39c5

Browse files
committed
wip: its working!
1 parent 7155ad8 commit acf39c5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/browser/pages/vscode.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,18 @@
6464
} catch (error) {
6565
/* Probably fine. */
6666
}
67-
console.log("hello joe")
67+
const resolveBase = (base) => {
68+
// After resolving the base will either start with / or be an empty string.
69+
if (!base || base.startsWith("/")) {
70+
return base ?? ""
71+
}
72+
}
73+
74+
const base = resolveBase("{{CS_STATIC_BASE}}")
75+
6876
self.require = {
6977
// Without the full URL VS Code will try to load file://.
70-
baseUrl: `${window.location.origin}{{CS_STATIC_BASE}}/lib/vscode/out`,
78+
baseUrl: `${window.location.origin}${base}/lib/vscode/out`,
7179
recordStats: true,
7280
paths: {
7381
"vscode-textmate": `../node_modules/vscode-textmate/release/main`,

0 commit comments

Comments
 (0)