aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 21:09:24 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 22:22:52 -0500
commite90c21e476f4116f6ea58ba854766583cda3c531 (patch)
treeb73b455643c6f52050e43e62fc99f40e9bbed66e /lib
parente608ef26114c658168035e83b6b07351db8fe284 (diff)
downloadpatchfoo-e90c21e476f4116f6ea58ba854766583cda3c531.tar.gz
patchfoo-e90c21e476f4116f6ea58ba854766583cda3c531.zip
Prefer image filename for blob download name
Diffstat (limited to 'lib')
-rw-r--r--lib/render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js
index 2762484..7e24d29 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -25,7 +25,7 @@ MdRenderer.prototype.urltransform = function (href) {
MdRenderer.prototype.image = function (href, title, text) {
href = this.render.imageUrl(href)
- var name = title || text
+ var name = text || title
if (name) href += '?name=' + encodeURIComponent(name)
return h('img', {
src: href,