From 2e06e34a7bcb3b030f877e544c290ce07f73a1d5 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 1 Jun 2023 08:42:43 +0200 Subject: [PATCH] refactor: rename argument --- assets/js/webmention-utils.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/webmention-utils.mjs b/assets/js/webmention-utils.mjs index 45a4e42..376afd4 100644 --- a/assets/js/webmention-utils.mjs +++ b/assets/js/webmention-utils.mjs @@ -1,5 +1,5 @@ -export function renderMentions(mentions, className) { - const webMentionsSection = document.querySelector(className); +export function renderMentions(mentions, rootSelector) { + const webMentionsSection = document.querySelector(rootSelector); mentions = mentions.filter((m) => m["wm-private"] !== true); if (mentions.filter((m) => m.author.name !== "Ayo Ayco").length)