From d3b4e9d9c4d7146f9d1867fc82ff95fb6b6e4309 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 1 Sep 2019 20:43:43 -0700 Subject: Correct showing audio format --- lib/render-msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/render-msg.js') 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) -- cgit v1.2.3