diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-10-03 16:42:22 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-10-03 16:42:22 -1000 |
commit | 52e97a91ec0efa0fe8f50b98bed339a449df233a (patch) | |
tree | 1add5468401054035fe0af6e544ff00ee7748b76 /lib/render.js | |
parent | 066c97d7a3d2602912dcaa5296a01c5407e868b3 (diff) | |
download | patchfoo-52e97a91ec0efa0fe8f50b98bed339a449df233a.tar.gz patchfoo-52e97a91ec0efa0fe8f50b98bed339a449df233a.zip |
Remove name parameter from URL
This allows dillo to cache the image even when the name is changed
Diffstat (limited to 'lib/render.js')
-rw-r--r-- | lib/render.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/render.js b/lib/render.js index a7d02be..df7d378 100644 --- a/lib/render.js +++ b/lib/render.js @@ -26,8 +26,6 @@ MdRenderer.prototype.urltransform = function (href) { MdRenderer.prototype.image = function (ref, title, text) { var href = this.render.imageUrl(ref) - var name = text || title - if (name) href += '?name=' + encodeURIComponent(name) return h('img', { src: href, alt: this.render.getImageAlt(ref, text), |