From 5d888a39a7f126d455f0864a7d44bce7988b8c6f Mon Sep 17 00:00:00 2001 From: Naviary2 Date: Fri, 3 Jan 2025 05:22:16 -0700 Subject: [PATCH] Use classList.add() instead of className = --- src/client/scripts/esm/views/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/scripts/esm/views/index.ts b/src/client/scripts/esm/views/index.ts index ab6ced27..0b533910 100644 --- a/src/client/scripts/esm/views/index.ts +++ b/src/client/scripts/esm/views/index.ts @@ -36,14 +36,14 @@ interface Contributor { iconImg.src = contributor.iconUrl; const githubStatsContainer = document.createElement("div"); - githubStatsContainer.className = "github-stats"; + githubStatsContainer.classList.add("github-stats"); const name = document.createElement("p"); - name.className = "name"; + name.classList.add("name"); name.innerText = contributor.name; const paragraph = document.createElement("p"); - paragraph.className = "contribution-count"; + paragraph.classList.add("contribution-count"); paragraph.innerText = `${translations['contribution_count']?.[0] || ""}${contributor.contributionCount}${translations['contribution_count']?.[1] || ""}`; githubStatsContainer.appendChild(name);