diff options
-rw-r--r-- | lib/render-msg.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 3de96c7..e99a0a5 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -1126,7 +1126,7 @@ function formatDuration(s) { RenderMsg.prototype.audio = function (cb) { this.wrapMini([ h('a', {href: this.toUrl(this.c.blob)}, 'audio'), - isFinite(this.c.format) ? ' (' + this.c.format + ')' : '', + this.c.format ? ' (' + this.c.format + ')' : '', isFinite(this.c.duration) ? ' (' + formatDuration(this.c.duration) + ')' : '', isFinite(this.c.size) ? ' [' + this.render.formatSize(this.c.size) + ']' : '', ], cb) |