From c7003df0bbdf4be19cb83ce055c3d93b638d560a Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Thu, 9 Apr 2026 18:14:01 +0200 Subject: [PATCH] fix: scope badge querySelector to dialog, update dialog title --- js/nodes_stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/nodes_stats.js b/js/nodes_stats.js index 3bd3a3c..3f84880 100644 --- a/js/nodes_stats.js +++ b/js/nodes_stats.js @@ -72,7 +72,7 @@ async function showStatsDialog() { "background:#1e1e1e;color:#ddd;border-radius:8px;padding:24px;max-width:800px;width:90%;max-height:85vh;overflow-y:auto;font-family:monospace;font-size:13px;"; let html = `
-

Node Package Stats

+

Usage Stats

`; @@ -140,7 +140,7 @@ async function showStatsDialog() { // Easter egg: click "used" badge 5 times to show podium let eggClicks = 0; let eggTimer = null; - const usedBadge = document.getElementById("nodes-stats-used-badge"); + const usedBadge = dialog.querySelector("#nodes-stats-used-badge"); if (usedBadge) { usedBadge.addEventListener("click", () => { eggClicks++;