mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-10 08:34:12 +01:00
Don't store duplicate site-filters when appending to styles.
--HG-- extra : rebase_source : aefc07675ea287d3b8d51c8fc56ecc14730b7c30
This commit is contained in:
@@ -561,9 +561,8 @@ var Styles = Module("Styles", {
|
||||
if (args["-append"]) {
|
||||
let sheet = args["-group"].get(args["-name"]);
|
||||
if (sheet) {
|
||||
filter = sheet.sites.concat(filter).join(",");
|
||||
filter = array(sheet.sites).concat(filter).uniq().join(",");
|
||||
css = sheet.css + " " + css;
|
||||
|
||||
}
|
||||
}
|
||||
let style = args["-group"].add(args["-name"], filter, css, args["-agent"]);
|
||||
|
||||
Reference in New Issue
Block a user