mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 13:55:45 +01:00
Fix some crap.
This commit is contained in:
@@ -478,7 +478,7 @@ const Mappings = Module("mappings", {
|
||||
return util.Array.flatten(
|
||||
[
|
||||
[[name, map.description] for ([i, name] in Iterator(map.names))]
|
||||
for ([i, map] in Iterator(this._user[mode].concat(this._main[mode])))
|
||||
for ([i, map] in Iterator(mappings._user[mode].concat(mappings._main[mode])))
|
||||
]);
|
||||
}
|
||||
]);
|
||||
|
||||
@@ -492,9 +492,9 @@ function Styles(name, store) {
|
||||
*/
|
||||
this.removeSheet = function (system, name, filter, css, index) {
|
||||
let self = this;
|
||||
if (arguments.length == 0) {
|
||||
if (arguments.length == 1) {
|
||||
var matches = [system];
|
||||
system = sheet.system;
|
||||
system = matches[0].system;
|
||||
}
|
||||
let sheets = system ? systemSheets : userSheets;
|
||||
let names = system ? systemNames : userNames;
|
||||
|
||||
Reference in New Issue
Block a user