diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateAdditionalFilesShortcut.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesShortcut.js b/src/content/dependencies/generateAdditionalFilesShortcut.js index dd097e28..7dfe07b3 100644 --- a/src/content/dependencies/generateAdditionalFilesShortcut.js +++ b/src/content/dependencies/generateAdditionalFilesShortcut.js @@ -1,3 +1,5 @@ +import {empty} from '../../util/sugar.js'; + export default { extraDependencies: [ 'html', @@ -14,6 +16,10 @@ export default { html, language, }) { + if (empty(data.titles)) { + return html.blank(); + } + return language.$('releaseInfo.additionalFiles.shortcut', { anchorLink: html.tag('a', |