Making commit hash show conditionally.

pull/1967/head
Warrick Corfe-Tan 4 years ago
parent 1fe6b61308
commit 3c4dc7f038

@ -27,7 +27,10 @@
this.$('textarea').val(i18n('loading')); this.$('textarea').val(i18n('loading'));
const operatingSystemInfo = `${i18n('operatingSystem', window.getOSRelease())}`; const operatingSystemInfo = `${i18n('operatingSystem', window.getOSRelease())}`;
const commitHashInfo = i18n('commitHash', window.getCommitHash());
const commitHashInfo = window.getCommitHash()
? i18n('commitHash', window.getCommitHash())
: '';
// eslint-disable-next-line more/no-then // eslint-disable-next-line more/no-then
window.log.fetch().then(text => { window.log.fetch().then(text => {

Loading…
Cancel
Save