From 8d7ba432658d574ce7afe24cd7b9e6adfd6d7966 Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 23:20:28 +0000 Subject: [PATCH] Hex Paths mode still shows conflict tooltips hexMode flag shows raw hex prefix as display text but keeps the full conflict tooltip, link, and warning badges. --- public/hop-display.js | 2 +- public/index.html | 4 ++-- public/packets.js | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/public/hop-display.js b/public/hop-display.js index 458f55cf..fc93a018 100644 --- a/public/hop-display.js +++ b/public/hop-display.js @@ -26,7 +26,7 @@ window.HopDisplay = (function() { const totalRegional = entry.totalRegional || 0; const globalFallback = entry.globalFallback || false; const unreliable = entry.unreliable || false; - const display = name ? escapeHtml(opts.truncate ? name.slice(0, opts.truncate) : name) : h; + const display = opts.hexMode ? h : (name ? escapeHtml(opts.truncate ? name.slice(0, opts.truncate) : name) : h); // Build tooltip let title = h; diff --git a/public/index.html b/public/index.html index 334ed82a..7071a4c9 100644 --- a/public/index.html +++ b/public/index.html @@ -83,10 +83,10 @@ - + - + diff --git a/public/packets.js b/public/packets.js index ee5f260e..3eb3f49a 100644 --- a/public/packets.js +++ b/public/packets.js @@ -130,10 +130,7 @@ } function renderHop(h) { - if (showHexHashes) { - return `${escapeHtml(h)}`; - } - return HopDisplay.renderHop(h, hopNameCache[h]); + return HopDisplay.renderHop(h, hopNameCache[h], { hexMode: showHexHashes }); } function renderPath(hops) {