1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 01:34:12 +01:00

Shorten last commit (and s/'/"/g)

This commit is contained in:
Kris Maglione
2009-01-02 20:28:56 -05:00
parent 2604c7df16
commit f36b293e0d

View File

@@ -608,12 +608,8 @@ const liberator = (function () //{{{
// services.get("profile").selectedProfile.name is not rightness.
// If default profile Firefox runs without arguments,
// then selectedProfile returns last selected profile! (not current one!)
profileName: (function () {
let WINDOWS = getPlatformFeature() === "Win32";
let directoryService = Cc['@mozilla.org/file/directory_service;1'].getService(Ci.nsIProperties);
let profilePath = directoryService.get('ProfD', Ci.nsIFile).path;
return profilePath.replace(WINDOWS ? /^.*[\\]/ : /^.*[\/]/, '').replace(/^.+?\./, '');
})(),
profileName: Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties)
.get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, ""),
// TODO: move to events.js?
input: {