summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwebserver.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/webserver.js b/webserver.js
index e4b51b9..b7b77a6 100755
--- a/webserver.js
+++ b/webserver.js
@@ -43,10 +43,9 @@ app.use(bodyParser.text());
var module_list=fs.readdirSync("modules").filter(function(f){
- return ["$common.js",".DS_Store"].indexOf(f)==-1;
+ return ["$common.js",".DS_Store"].indexOf(f)==-1&&f[0]!="$";
});
for(i=0;i<module_list.length;i++){
- if(module_list[i]=="$common.js")continue;
require("./modules/"+module_list[i]+"/"+module_list[i]+".js")(app,io,cmn.serverdir+"/modules/"+module_list[i]);
console.log("Loaded module "+module_list[i]);
}