refactor: rename argument

This commit is contained in:
Ayo 2023-06-01 08:42:43 +02:00
parent 07186c2325
commit 2e06e34a7b

View file

@ -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)