mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-31 08:55:45 +01:00
Shorten last commit (and s/'/"/g)
This commit is contained in:
@@ -608,12 +608,8 @@ const liberator = (function () //{{{
|
|||||||
// services.get("profile").selectedProfile.name is not rightness.
|
// services.get("profile").selectedProfile.name is not rightness.
|
||||||
// If default profile Firefox runs without arguments,
|
// If default profile Firefox runs without arguments,
|
||||||
// then selectedProfile returns last selected profile! (not current one!)
|
// then selectedProfile returns last selected profile! (not current one!)
|
||||||
profileName: (function () {
|
profileName: Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties)
|
||||||
let WINDOWS = getPlatformFeature() === "Win32";
|
.get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, ""),
|
||||||
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(/^.+?\./, '');
|
|
||||||
})(),
|
|
||||||
|
|
||||||
// TODO: move to events.js?
|
// TODO: move to events.js?
|
||||||
input: {
|
input: {
|
||||||
|
|||||||
Reference in New Issue
Block a user