refactor: rename argument
This commit is contained in:
parent
07186c2325
commit
2e06e34a7b
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
export function renderMentions(mentions, className) {
|
export function renderMentions(mentions, rootSelector) {
|
||||||
const webMentionsSection = document.querySelector(className);
|
const webMentionsSection = document.querySelector(rootSelector);
|
||||||
mentions = mentions.filter((m) => m["wm-private"] !== true);
|
mentions = mentions.filter((m) => m["wm-private"] !== true);
|
||||||
|
|
||||||
if (mentions.filter((m) => m.author.name !== "Ayo Ayco").length)
|
if (mentions.filter((m) => m.author.name !== "Ayo Ayco").length)
|
||||||
|
|
Loading…
Reference in a new issue