diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-09-01 20:43:43 -0700 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-09-01 20:43:43 -0700 |
commit | d3b4e9d9c4d7146f9d1867fc82ff95fb6b6e4309 (patch) | |
tree | 14ba186f49e9ad52f444146394991f8ed8cca231 | |
parent | 8502730e96a40690b34fe8d0b41cf44c7baf2cff (diff) | |
download | patchfoo-d3b4e9d9c4d7146f9d1867fc82ff95fb6b6e4309.tar.gz patchfoo-d3b4e9d9c4d7146f9d1867fc82ff95fb6b6e4309.zip |
Correct showing audio format
-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) |