aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-01 20:43:43 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-01 20:43:43 -0700
commitd3b4e9d9c4d7146f9d1867fc82ff95fb6b6e4309 (patch)
tree14ba186f49e9ad52f444146394991f8ed8cca231 /lib/render-msg.js
parent8502730e96a40690b34fe8d0b41cf44c7baf2cff (diff)
downloadpatchfoo-d3b4e9d9c4d7146f9d1867fc82ff95fb6b6e4309.tar.gz
patchfoo-d3b4e9d9c4d7146f9d1867fc82ff95fb6b6e4309.zip
Correct showing audio format
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js2
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)