From ef8ac62285cf149b705369eeb6e614ba041e5f32 Mon Sep 17 00:00:00 2001 From: SharkPool <139097378+SharkPool-SP@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:36:57 -0800 Subject: [PATCH] Update contributor-generator.js --- pages/scripts/contributor-generator.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/scripts/contributor-generator.js b/pages/scripts/contributor-generator.js index f5b0ca3..b71ab6b 100644 --- a/pages/scripts/contributor-generator.js +++ b/pages/scripts/contributor-generator.js @@ -1,4 +1,7 @@ async function displayContributors() { + const oldDiv = document.querySelector(".ext-div"); + if (oldDiv) oldDiv.remove(); + const main = document.createElement("div"); main.classList.add("ext-div"); main.setAttribute("style", "pointer-events: auto; width: 100%;");