1
0
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:
Doug Kearns
2011-06-11 19:17:29 +10:00
parent a2b72021fe
commit c4c0ab7789

View File

@@ -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"]);