mirror of
https://github.com/coder/code-server.git
synced 2025-09-21 16:29:17 +08:00
@ -523,8 +523,8 @@ export class MainServer extends Server {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "/webview":
|
case "/webview":
|
||||||
if (requestPath.indexOf("/vscode-resource") === 0) {
|
if (/^\/vscode-resource/.test(requestPath)) {
|
||||||
return this.getResource(requestPath.replace(/^\/vscode-resource/, ""));
|
return this.getResource(requestPath.replace(/^\/vscode-resource(\/file)?/, ""));
|
||||||
}
|
}
|
||||||
return this.getResource(
|
return this.getResource(
|
||||||
this.rootPath,
|
this.rootPath,
|
||||||
|
Reference in New Issue
Block a user