mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 07:08:00 +01:00
Merge.
This commit is contained in:
@@ -66,6 +66,8 @@ const Liberator = Module("liberator", {
|
|||||||
// without explicitly selecting a profile.
|
// without explicitly selecting a profile.
|
||||||
/** @property {string} The name of the current user profile. */
|
/** @property {string} The name of the current user profile. */
|
||||||
this.profileName = services.get("directory").get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, "");
|
this.profileName = services.get("directory").get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, "");
|
||||||
|
|
||||||
|
config.features.push(Liberator.getPlatformFeature());
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
@@ -1730,8 +1732,6 @@ const Liberator = Module("liberator", {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
load: function () {
|
load: function () {
|
||||||
config.features.push(Liberator.getPlatformFeature());
|
|
||||||
|
|
||||||
liberator.triggerObserver("load");
|
liberator.triggerObserver("load");
|
||||||
|
|
||||||
liberator.log("All modules loaded", 3);
|
liberator.log("All modules loaded", 3);
|
||||||
|
|||||||
@@ -1117,26 +1117,10 @@ const Options = Module("options", {
|
|||||||
else if (matches[3] == ".")
|
else if (matches[3] == ".")
|
||||||
reference[0][reference[1]] += expr.toString();
|
reference[0][reference[1]] += expr.toString();
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if (!reference[0]) {
|
|
||||||
if (reference[2] == "g")
|
|
||||||
reference[0] = liberator.globalVariables;
|
|
||||||
else
|
|
||||||
return; // for now
|
|
||||||
}
|
|
||||||
|
|
||||||
if (matches[3]) {
|
else
|
||||||
if (matches[3] == "+")
|
reference[0][reference[1]] = expr;
|
||||||
reference[0][reference[1]] += expr;
|
}
|
||||||
else if (matches[3] == "-")
|
|
||||||
reference[0][reference[1]] -= expr;
|
|
||||||
else if (matches[3] == ".")
|
|
||||||
reference[0][reference[1]] += expr.toString();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
reference[0][reference[1]] = expr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// 1 - name
|
// 1 - name
|
||||||
else if (matches = args.match(/^\s*([\w:]+)\s*$/)) {
|
else if (matches = args.match(/^\s*([\w:]+)\s*$/)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user