Refactor meta tag generation to remove port information from output

This commit is contained in:
2026-02-19 00:02:43 +03:00
parent 553b7a254c
commit 6bb3ed119f

View File

@@ -267,10 +267,10 @@ function buildMetaTag(proxy) {
const portSup = portToFancy(port, typ); const portSup = portToFancy(port, typ);
if (icon === METATAG_RULES.defaultPair && METATAG_RULES.includeFallbackText) { if (icon === METATAG_RULES.defaultPair && METATAG_RULES.includeFallbackText) {
return `${icon}(${normalizeToken(net)}/${normalizeToken(typ)})${portSup}`; return `${icon}(${normalizeToken(net)}/${normalizeToken(typ)})`;
} }
return `${icon}${portSup}`; return `${icon}`;
} }
function metaPairIcon(network, type) { function metaPairIcon(network, type) {