Refactor meta tag generation to remove port information from output
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user