From 5ba65e7b38beeb2f67b7244a2fda98531004feb8 Mon Sep 17 00:00:00 2001 From: shido Date: Mon, 24 Apr 2023 16:33:37 +0900 Subject: [PATCH] Fix small bug --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 6f15918..b0532d5 100644 --- a/script.js +++ b/script.js @@ -86,7 +86,7 @@ function main() { newDiv.className = getButtonClassName(); newDiv.id = getButtonClassName(); buttonDescription.appendChild(getDescription()); - buttonDescription.appendChild(getVersionElement()); + buttonDescription.appendChild(getVersionElement(latestVersion)); newDiv.appendChild(buttonDescription); // Prepare Buttons @@ -102,7 +102,7 @@ function main() { newDiv.appendChild(buttonContainer); document - .getElementsByClassName("js-release-tag")[0] + .querySelector("div[class*='js-release-tag']") .appendChild(newDiv); }