Skip to content

Commit

Permalink
fix the problem of extension Broken on WSL2
Browse files Browse the repository at this point in the history
issue: pomber#196
  • Loading branch information
Lemonnnnnnnnnnn committed Oct 19, 2024
1 parent a20f608 commit 131a682
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vscode-ext/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ function activate(context) {
)
.replace(
"<head>",
`<head><base href="${vscode.Uri.file(
path.join(context.extensionPath, "site")
).with({
scheme: "vscode-resource"
})}/"/>`
`<head><base href="${panel.webview.asWebviewUri(vscode.Uri.file(path.join(context.extensionPath,'site')))}/"/>`
);

panel.webview.html = newIndex;
Expand Down

0 comments on commit 131a682

Please sign in to comment.