summaryrefslogtreecommitdiff
path: root/source/features/latest-tag-button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/latest-tag-button.tsx')
-rw-r--r--source/features/latest-tag-button.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/features/latest-tag-button.tsx b/source/features/latest-tag-button.tsx
index 89001830..55ed1833 100644
--- a/source/features/latest-tag-button.tsx
+++ b/source/features/latest-tag-button.tsx
@@ -114,7 +114,12 @@ async function init(): Promise<false | void> {
const defaultBranch = await getDefaultBranch();
if (currentBranch === defaultBranch) {
link.append(<sup> +{aheadBy}</sup>);
- link.setAttribute('aria-label', aheadBy ? `${defaultBranch} is ${pluralize(aheadBy, '1 commit', '$$ commits')} ahead of the latest release` : `The HEAD of ${defaultBranch} isn’t tagged`);
+ link.setAttribute(
+ 'aria-label',
+ aheadBy ?
+ `${defaultBranch} is ${pluralize(aheadBy, '1 commit', '$$ commits')} ahead of the latest release` :
+ `The HEAD of ${defaultBranch} isn’t tagged`
+ );
} else {
link.setAttribute('aria-label', 'Visit the latest release');
}