Skip to content

Commit 0868ee2

Browse files
committed
bugfix for map local in windows
1 parent cfb3f21 commit 0868ee2

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/rule_default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = {
9494

9595
app.get("/filetree",function(req,res){
9696
try{
97-
var root = req.query.root || process.env.HOME || "/";
97+
var root = req.query.root || utils.getUserHome() || "/";
9898
utils.filewalker(root,function(err, info){
9999
res.json(info);
100100
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "anyproxy",
3-
"version": "3.7.0Beta5",
3+
"version": "3.7.0Beta6",
44
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
55
"main": "proxy.js",
66
"bin": {

web/build/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ var recorder;
144144
(function(){
145145

146146
//detect whether to show the filter and map btn
147-
$.get("/filetree?root=/",function(){
147+
$.get("/filetree",function(){
148148
$(".J_filterSection").show();
149149
});
150150

web/page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
(function(){
191191

192192
//detect whether to show the filter and map btn
193-
$.get("/filetree?root=/",function(){
193+
$.get("/filetree",function(){
194194
$(".J_filterSection").show();
195195
});
196196

web/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ var recorder;
144144
(function(){
145145

146146
//detect whether to show the filter and map btn
147-
$.get("/filetree?root=/",function(){
147+
$.get("/filetree",function(){
148148
$(".J_filterSection").show();
149149
});
150150

0 commit comments

Comments
 (0)