diff options
Diffstat (limited to 'src/content/dependencies/generateContributionTooltipExternalLinkSection.js')
-rw-r--r-- | src/content/dependencies/generateContributionTooltipExternalLinkSection.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/content/dependencies/generateContributionTooltipExternalLinkSection.js b/src/content/dependencies/generateContributionTooltipExternalLinkSection.js index d4342098..4f9a23ed 100644 --- a/src/content/dependencies/generateContributionTooltipExternalLinkSection.js +++ b/src/content/dependencies/generateContributionTooltipExternalLinkSection.js @@ -58,8 +58,10 @@ export default { // don't have a way of telling formatExternalLink to *not* // use the fallback string, which just formats the URL as // its host/domain... so is technically detectable. - ((html.resolve(platform, {normalize: 'string'}) === - (new URL(url)).host) + (((new URL(url)) + .host + .endsWith( + html.resolve(platform, {normalize: 'string'}))) ? language.$(capsule, 'noExternalLinkPlatformName') : platform)), |