Commit 52e97a91ec0efa0fe8f50b98bed339a449df233a
Remove name parameter from URL
This allows dillo to cache the image even when the name is changedcel committed on 10/4/2017, 2:42:22 AM
Parent: 066c97d7a3d2602912dcaa5296a01c5407e868b3
Files changed
lib/render.js | changed |
lib/render.js | ||
---|---|---|
@@ -25,10 +25,8 @@ | ||
25 | 25 … | } |
26 | 26 … | |
27 | 27 … | MdRenderer.prototype.image = function (ref, title, text) { |
28 | 28 … | var href = this.render.imageUrl(ref) |
29 | - var name = text || title | |
30 | - if (name) href += '?name=' + encodeURIComponent(name) | |
31 | 29 … | return h('img', { |
32 | 30 … | src: href, |
33 | 31 … | alt: this.render.getImageAlt(ref, text), |
34 | 32 … | title: title || undefined |
Built with git-ssb-web