We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd36f8c commit 543d642Copy full SHA for 543d642
src/node/app/static.ts
@@ -39,7 +39,7 @@ export class StaticHttpProvider extends HttpProvider {
39
40
// Make sure it's in code-server or a plugin.
41
const validPaths = [this.rootPath, process.env.PLUGIN_DIR]
42
- if (!validPaths.find((p) => typeof p !== "undefined" && p.length > 0 && resourcePath.startsWith(p))) {
+ if (!validPaths.find((p) => p && resourcePath.startsWith(p))) {
43
this.ensureAuthenticated(request)
44
}
45
0 commit comments