mirror of
https://github.com/coder/code-server.git
synced 2026-01-15 01:35:00 +08:00
parent
e7945bea94
commit
95693fb58e
@ -523,8 +523,8 @@ export class MainServer extends Server {
|
||||
}
|
||||
break;
|
||||
case "/webview":
|
||||
if (requestPath.indexOf("/vscode-resource") === 0) {
|
||||
return this.getResource(requestPath.replace(/^\/vscode-resource/, ""));
|
||||
if (/^\/vscode-resource/.test(requestPath)) {
|
||||
return this.getResource(requestPath.replace(/^\/vscode-resource(\/file)?/, ""));
|
||||
}
|
||||
return this.getResource(
|
||||
this.rootPath,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user