bugfix for map local in windows

This commit is contained in:
OttoMao 2015-07-20 10:36:44 +08:00
parent cfb3f21f01
commit 0868ee248c
5 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ module.exports = {
app.get("/filetree",function(req,res){
try{
var root = req.query.root || process.env.HOME || "/";
var root = req.query.root || utils.getUserHome() || "/";
utils.filewalker(root,function(err, info){
res.json(info);
});

View File

@ -1,6 +1,6 @@
{
"name": "anyproxy",
"version": "3.7.0Beta5",
"version": "3.7.0Beta6",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js",
"bin": {

View File

@ -144,7 +144,7 @@ var recorder;
(function(){
//detect whether to show the filter and map btn
$.get("/filetree?root=/",function(){
$.get("/filetree",function(){
$(".J_filterSection").show();
});

View File

@ -190,7 +190,7 @@
(function(){
//detect whether to show the filter and map btn
$.get("/filetree?root=/",function(){
$.get("/filetree",function(){
$(".J_filterSection").show();
});

View File

@ -144,7 +144,7 @@ var recorder;
(function(){
//detect whether to show the filter and map btn
$.get("/filetree?root=/",function(){
$.get("/filetree",function(){
$(".J_filterSection").show();
});