blob: b1f3c8f43319d945041d805b95802d6a607b2db1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$FreeBSD$
--- components/foxyproxy.js.orig
+++ components/foxyproxy.js
@@ -424,15 +424,13 @@
},
getDefaultPath : function() {
- //var file = CC["@mozilla.org/file/local;1"].createInstance(CI.nsILocalFile);
- //var dir = CC["@mozilla.org/file/directory_service;1"].getService(CI.nsIProperties).get("ProfD", CI.nsILocalFile);
- var f = settingsDir.clone();
- f.append("foxyproxy.xml");
+ var file = CC["@mozilla.org/file/local;1"].createInstance(CI.nsILocalFile);
+ var dir = CC["@mozilla.org/file/directory_service;1"].getService(CI.nsIProperties).get("ProfD", CI.nsILocalFile);
// dump("settings file: " + f.path + "\n");
return f;
- // file.initWithPath(dir.path);
- // file.appendRelativePath("foxyproxy.xml");
- // return file;
+ file.initWithPath(dir.path);
+ file.appendRelativePath("foxyproxy.xml");
+ return file;
},
// Convert |o| from:
|